Update JSONWriter constructor for the newer version
This commit is contained in:
parent
305c3a7bb9
commit
056d0d18b0
@ -12,8 +12,6 @@ import org.json.JSONWriter;
|
|||||||
import org.openrefine.wikidata.editing.ConnectionManager;
|
import org.openrefine.wikidata.editing.ConnectionManager;
|
||||||
|
|
||||||
import com.google.refine.commands.Command;
|
import com.google.refine.commands.Command;
|
||||||
import com.google.refine.preference.PreferenceStore;
|
|
||||||
import com.google.refine.ProjectManager;
|
|
||||||
|
|
||||||
public class LoginCommand extends Command {
|
public class LoginCommand extends Command {
|
||||||
@Override
|
@Override
|
||||||
@ -33,7 +31,7 @@ public class LoginCommand extends Command {
|
|||||||
response.setHeader("Content-Type", "application/json");
|
response.setHeader("Content-Type", "application/json");
|
||||||
|
|
||||||
StringWriter sb = new StringWriter(2048);
|
StringWriter sb = new StringWriter(2048);
|
||||||
JSONWriter writer = new JSONWriter(sb, 32);
|
JSONWriter writer = new JSONWriter(sb);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
writer.object();
|
writer.object();
|
||||||
|
@ -80,7 +80,7 @@ public class PreviewWikibaseSchemaCommand extends Command {
|
|||||||
List<ItemUpdate> editBatch = schema.evaluate(project, engine, warningStore);
|
List<ItemUpdate> editBatch = schema.evaluate(project, engine, warningStore);
|
||||||
|
|
||||||
StringWriter sb = new StringWriter(2048);
|
StringWriter sb = new StringWriter(2048);
|
||||||
JSONWriter writer = new JSONWriter(sb, 32);
|
JSONWriter writer = new JSONWriter(sb);
|
||||||
writer.object();
|
writer.object();
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user