From 0ce7310caa30c83b4d291fa4d6e3e5e0fb8c486c Mon Sep 17 00:00:00 2001 From: Dave Roberge Date: Sat, 20 Jun 2015 09:46:24 -0400 Subject: [PATCH] Update JsonReader & JsonWriter javadoc to use BufferedSource & BufferedSink --- moshi/src/main/java/com/squareup/moshi/JsonReader.java | 2 +- moshi/src/main/java/com/squareup/moshi/JsonWriter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/moshi/src/main/java/com/squareup/moshi/JsonReader.java b/moshi/src/main/java/com/squareup/moshi/JsonReader.java index 814f1d1..cef68af 100644 --- a/moshi/src/main/java/com/squareup/moshi/JsonReader.java +++ b/moshi/src/main/java/com/squareup/moshi/JsonReader.java @@ -83,7 +83,7 @@ import okio.ByteString; * ]} * This code implements the parser for the above structure:
   {@code
  *
- *   public List readJsonStream(Source source) throws IOException {
+ *   public List readJsonStream(BufferedSource source) throws IOException {
  *     JsonReader reader = new JsonReader(source);
  *     try {
  *       return readMessagesArray(reader);
diff --git a/moshi/src/main/java/com/squareup/moshi/JsonWriter.java b/moshi/src/main/java/com/squareup/moshi/JsonWriter.java
index 40566d8..a6af844 100644
--- a/moshi/src/main/java/com/squareup/moshi/JsonWriter.java
+++ b/moshi/src/main/java/com/squareup/moshi/JsonWriter.java
@@ -75,7 +75,7 @@ import static com.squareup.moshi.JsonScope.NONEMPTY_OBJECT;
  *   }
  * ]}
* This code encodes the above structure:
   {@code
- *   public void writeJsonStream(Sink sink, List messages) throws IOException {
+ *   public void writeJsonStream(BufferedSink sink, List messages) throws IOException {
  *     JsonWriter writer = new JsonWriter(sink);
  *     writer.setIndentSpaces(4);
  *     writeMessagesArray(writer, messages);