Update JSONWriter constructor for the newer version

This commit is contained in:
Antonin Delpeuch 2018-02-19 14:38:18 +00:00
parent 305c3a7bb9
commit 056d0d18b0
2 changed files with 2 additions and 4 deletions

View File

@ -12,8 +12,6 @@ import org.json.JSONWriter;
import org.openrefine.wikidata.editing.ConnectionManager;
import com.google.refine.commands.Command;
import com.google.refine.preference.PreferenceStore;
import com.google.refine.ProjectManager;
public class LoginCommand extends Command {
@Override
@ -33,7 +31,7 @@ public class LoginCommand extends Command {
response.setHeader("Content-Type", "application/json");
StringWriter sb = new StringWriter(2048);
JSONWriter writer = new JSONWriter(sb, 32);
JSONWriter writer = new JSONWriter(sb);
try {
writer.object();

View File

@ -80,7 +80,7 @@ public class PreviewWikibaseSchemaCommand extends Command {
List<ItemUpdate> editBatch = schema.evaluate(project, engine, warningStore);
StringWriter sb = new StringWriter(2048);
JSONWriter writer = new JSONWriter(sb, 32);
JSONWriter writer = new JSONWriter(sb);
writer.object();
{