From 1e9004403c619729ad1c49f070ab61427bd462c5 Mon Sep 17 00:00:00 2001 From: Inderjeet Singh Date: Sat, 26 Sep 2015 18:10:00 -0700 Subject: [PATCH] Fixed javadoc for JsonWriter as reported in https://github.com/google/gson/issues/623 --- gson/src/main/java/com/google/gson/stream/JsonWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gson/src/main/java/com/google/gson/stream/JsonWriter.java b/gson/src/main/java/com/google/gson/stream/JsonWriter.java index 839295d4..8d3bdb34 100644 --- a/gson/src/main/java/com/google/gson/stream/JsonWriter.java +++ b/gson/src/main/java/com/google/gson/stream/JsonWriter.java @@ -77,7 +77,7 @@ import static com.google.gson.stream.JsonScope.NONEMPTY_OBJECT; * This code encodes the above structure:
   {@code
  *   public void writeJsonStream(OutputStream out, List messages) throws IOException {
  *     JsonWriter writer = new JsonWriter(new OutputStreamWriter(out, "UTF-8"));
- *     writer.setIndentSpaces(4);
+ *     writer.setIndent("    ");
  *     writeMessagesArray(writer, messages);
  *     writer.close();
  *   }