Merge pull request #727 from square/eric.getBuffer

Use BufferedSource.getBuffer().
This commit is contained in:
Jesse Wilson
2018-11-03 12:12:05 +10:00
committed by GitHub

View File

@@ -94,7 +94,7 @@ final class JsonUtf8Reader extends JsonReader {
throw new NullPointerException("source == null"); throw new NullPointerException("source == null");
} }
this.source = source; this.source = source;
this.buffer = source.buffer(); this.buffer = source.getBuffer();
pushScope(JsonScope.EMPTY_DOCUMENT); pushScope(JsonScope.EMPTY_DOCUMENT);
} }