Remove unneeded calls to JSONObject.quote()

This commit is contained in:
Graham Triggs 2016-12-29 22:26:08 +00:00
parent 91d061f7f2
commit fc83c9f48d
2 changed files with 0 additions and 21 deletions

View file

@ -470,18 +470,10 @@ public class JSONReconcileServlet extends VitroHttpServlet {
return label; return label;
} }
public String getJsonLabel() {
return JSONObject.quote(label);
}
public String getUri() { public String getUri() {
return uri; return uri;
} }
public String getJsonUri() {
return JSONObject.quote(uri);
}
Map<String, String> toMap() { Map<String, String> toMap() {
Map<String, String> map = new HashMap<String, String>(); Map<String, String> map = new HashMap<String, String>();
map.put("label", label); map.put("label", label);

View file

@ -333,18 +333,10 @@ public class AutocompleteController extends VitroAjaxController {
return label; return label;
} }
public String getJsonLabel() {
return JSONObject.quote(label);
}
public String getUri() { public String getUri() {
return uri; return uri;
} }
public String getJsonUri() {
return JSONObject.quote(uri);
}
public String getMsType() { public String getMsType() {
return msType; return msType;
} }
@ -360,11 +352,6 @@ public class AutocompleteController extends VitroAjaxController {
return theType; return theType;
} }
public String getJsonMsType() {
return JSONObject.quote(msType);
}
//Simply passing in the array in the map converts it to a string and not to an array //Simply passing in the array in the map converts it to a string and not to an array
//which is what we want so need to convert to an object instad //which is what we want so need to convert to an object instad
JSONObject toJSONObject() { JSONObject toJSONObject() {