Fixed javadoc for JsonWriter as reported in
https://github.com/google/gson/issues/623
This commit is contained in:
parent
93605e7145
commit
1e9004403c
@ -77,7 +77,7 @@ import static com.google.gson.stream.JsonScope.NONEMPTY_OBJECT;
|
||||
* This code encodes the above structure: <pre> {@code
|
||||
* public void writeJsonStream(OutputStream out, List<Message> messages) throws IOException {
|
||||
* JsonWriter writer = new JsonWriter(new OutputStreamWriter(out, "UTF-8"));
|
||||
* writer.setIndentSpaces(4);
|
||||
* writer.setIndent(" ");
|
||||
* writeMessagesArray(writer, messages);
|
||||
* writer.close();
|
||||
* }
|
||||
|
Loading…
Reference in New Issue
Block a user