mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
Merge pull request #160 from square/jwilson.0502_okio180
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:
|
* parser to lenient causes it to ignore the following syntax errors:
|
||||||
*
|
*
|
||||||
* <ul>
|
* <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,
|
* <li>Streams that include multiple top-level values. With strict parsing,
|
||||||
* each stream must contain exactly one top-level value.
|
* 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
|
* <li>Numbers may be {@linkplain Double#isNaN() NaNs} or {@link
|
||||||
* Double#isInfinite() infinities}.
|
* Double#isInfinite() infinities}.
|
||||||
* <li>End of line comments starting with {@code //} or {@code #} and
|
* <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<>();
|
private final Map<Object, JsonAdapter<?>> adapterCache = new LinkedHashMap<>();
|
||||||
|
|
||||||
Moshi(Builder builder) {
|
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(builder.factories);
|
||||||
factories.addAll(BUILT_IN_FACTORIES);
|
factories.addAll(BUILT_IN_FACTORIES);
|
||||||
this.factories = Collections.unmodifiableList(factories);
|
this.factories = Collections.unmodifiableList(factories);
|
||||||
|
2
pom.xml
2
pom.xml
@@ -28,7 +28,7 @@
|
|||||||
<java.version>1.7</java.version>
|
<java.version>1.7</java.version>
|
||||||
|
|
||||||
<!-- Dependencies -->
|
<!-- Dependencies -->
|
||||||
<okio.version>1.8.0-SNAPSHOT</okio.version>
|
<okio.version>1.8.0</okio.version>
|
||||||
|
|
||||||
<!-- Test Dependencies -->
|
<!-- Test Dependencies -->
|
||||||
<junit.version>4.12</junit.version>
|
<junit.version>4.12</junit.version>
|
||||||
|
Reference in New Issue
Block a user