This commit is contained in:
epugh@opensourceconnections.com 2021-02-12 10:07:46 -05:00
parent 02ea7a1139
commit 3ea64b39cb
1 changed files with 4 additions and 4 deletions

View File

@ -45,16 +45,16 @@ public class JSONWriter extends TextResponseWriter implements JsonTextWriter {
this.wrapperFunction = wrapperFunction;
this.namedListStyle = namedListStyle;
}
private JSONWriter(Writer writer, boolean intend, String namedListStyle) throws IOException {
super(writer, intend);
private JSONWriter(Writer writer, boolean indent, String namedListStyle) throws IOException {
super(writer, indent);
this.namedListStyle = namedListStyle;
}
/**Strictly for testing only
*/
public static void write(Writer writer, boolean intend, String namedListStyle, Object val) throws IOException {
JSONWriter jw = new JSONWriter(writer, intend, namedListStyle);
public static void write(Writer writer, boolean indent, String namedListStyle, Object val) throws IOException {
JSONWriter jw = new JSONWriter(writer, indent, namedListStyle);
jw.writeVal(null, val);
jw.close();