Fixed javadoc for JsonWriter as reported in

https://github.com/google/gson/issues/623
This commit is contained in:
Inderjeet Singh 2015-09-26 18:10:00 -07:00
parent 93605e7145
commit 1e9004403c

View File

@ -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();
* }