From 82cf56ab7686779f6c87452a6f5c01ce652c8b4b Mon Sep 17 00:00:00 2001 From: Zac Sweers Date: Sun, 26 Dec 2021 17:55:43 -0600 Subject: [PATCH] Fix javadoc task and snapshots (#1474) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The javadoc task assumes every doc starts with h1 and thus using them anywhere in the body after the start is an error ¯\_(ツ)_/¯. This just changes them to h2 --- moshi/src/main/java/com/squareup/moshi/JsonReader.java | 6 +++--- moshi/src/main/java/com/squareup/moshi/JsonWriter.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/moshi/src/main/java/com/squareup/moshi/JsonReader.java b/moshi/src/main/java/com/squareup/moshi/JsonReader.java index 2546582..7ddcfe1 100644 --- a/moshi/src/main/java/com/squareup/moshi/JsonReader.java +++ b/moshi/src/main/java/com/squareup/moshi/JsonReader.java @@ -37,7 +37,7 @@ import okio.ByteString; * depth-first order, the same order that they appear in the JSON document. Within JSON objects, * name/value pairs are represented by a single token. * - *

Parsing JSON

+ *

Parsing JSON

* * To create a recursive descent parser for your own JSON streams, first create an entry point * method that creates a {@code JsonReader}. @@ -65,7 +65,7 @@ import okio.ByteString; *

If a value may be null, you should first check using {@link #peek()}. Null literals can be * consumed using either {@link #nextNull()} or {@link #skipValue()}. * - *

Example

+ *

Example

* * Suppose we'd like to parse a stream of messages such as the following: * @@ -171,7 +171,7 @@ import okio.ByteString; * } * } * - *

Number Handling

+ *

Number Handling

* * This reader permits numeric values to be read as strings and string values to be read as numbers. * For example, both elements of the JSON array {@code [1, "1"]} may be read using either {@link diff --git a/moshi/src/main/java/com/squareup/moshi/JsonWriter.java b/moshi/src/main/java/com/squareup/moshi/JsonWriter.java index 05d1952..49606e6 100644 --- a/moshi/src/main/java/com/squareup/moshi/JsonWriter.java +++ b/moshi/src/main/java/com/squareup/moshi/JsonWriter.java @@ -37,7 +37,7 @@ import okio.BufferedSource; * stream, one token at a time. The stream includes both literal values (strings, numbers, booleans * and nulls) as well as the begin and end delimiters of objects and arrays. * - *

Encoding JSON

+ *

Encoding JSON

* * To encode your data as JSON, create a new {@code JsonWriter}. Each JSON document must contain one * top-level array or object. Call methods on the writer as you walk the structure's contents, @@ -53,7 +53,7 @@ import okio.BufferedSource; * arrays. Finally close the object using {@link #endObject()}. * * - *

Example

+ *

Example

* * Suppose we'd like to encode a stream of messages such as the following: *