mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
Upgrade to Okio 1.8.0.
This commit is contained in:
@@ -189,12 +189,8 @@ public abstract class JsonReader implements Closeable {
|
||||
* parser to lenient causes it to ignore the following syntax errors:
|
||||
*
|
||||
* <ul>
|
||||
* <li>Streams that start with the <a href="#nonexecuteprefix">non-execute
|
||||
* prefix</a>, <code>")]}'\n"</code>.
|
||||
* <li>Streams that include multiple top-level values. With strict parsing,
|
||||
* each stream must contain exactly one top-level value.
|
||||
* <li>Top-level values of any type. With strict parsing, the top-level
|
||||
* value must be an object or an array.
|
||||
* <li>Numbers may be {@linkplain Double#isNaN() NaNs} or {@link
|
||||
* Double#isInfinite() infinities}.
|
||||
* <li>End of line comments starting with {@code //} or {@code #} and
|
||||
|
@@ -45,7 +45,8 @@ public final class Moshi {
|
||||
private final Map<Object, JsonAdapter<?>> adapterCache = new LinkedHashMap<>();
|
||||
|
||||
Moshi(Builder builder) {
|
||||
List<JsonAdapter.Factory> factories = new ArrayList<>(builder.factories.size() + BUILT_IN_FACTORIES.size());
|
||||
List<JsonAdapter.Factory> factories = new ArrayList<>(
|
||||
builder.factories.size() + BUILT_IN_FACTORIES.size());
|
||||
factories.addAll(builder.factories);
|
||||
factories.addAll(BUILT_IN_FACTORIES);
|
||||
this.factories = Collections.unmodifiableList(factories);
|
||||
|
Reference in New Issue
Block a user