Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import java.io.Writer;


class JsonWriter {
public class JsonWriter {

private static final int CONTROL_CHARACTERS_END = 0x001f;

Expand All @@ -39,11 +39,13 @@ class JsonWriter {
private static final char[] UNICODE_2028_CHARS = {'\\', 'u', '2', '0', '2', '8'};
private static final char[] UNICODE_2029_CHARS = {'\\', 'u', '2', '0', '2', '9'};
private static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'a', 'b', 'c', 'd', 'e', 'f'};
'a', 'b', 'c', 'd', 'e', 'f'};

protected final Writer writer;
protected Writer writer;

JsonWriter(Writer writer) {
public JsonWriter(){}

public JsonWriter(Writer writer) {
this.writer = writer;
}

Expand Down