Remove unneeded calls to JSONObject.quote()
This commit is contained in:
parent
91d061f7f2
commit
fc83c9f48d
2 changed files with 0 additions and 21 deletions
|
@ -470,18 +470,10 @@ public class JSONReconcileServlet extends VitroHttpServlet {
|
|||
return label;
|
||||
}
|
||||
|
||||
public String getJsonLabel() {
|
||||
return JSONObject.quote(label);
|
||||
}
|
||||
|
||||
public String getUri() {
|
||||
return uri;
|
||||
}
|
||||
|
||||
public String getJsonUri() {
|
||||
return JSONObject.quote(uri);
|
||||
}
|
||||
|
||||
Map<String, String> toMap() {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put("label", label);
|
||||
|
|
|
@ -333,18 +333,10 @@ public class AutocompleteController extends VitroAjaxController {
|
|||
return label;
|
||||
}
|
||||
|
||||
public String getJsonLabel() {
|
||||
return JSONObject.quote(label);
|
||||
}
|
||||
|
||||
public String getUri() {
|
||||
return uri;
|
||||
}
|
||||
|
||||
public String getJsonUri() {
|
||||
return JSONObject.quote(uri);
|
||||
}
|
||||
|
||||
public String getMsType() {
|
||||
return msType;
|
||||
}
|
||||
|
@ -360,11 +352,6 @@ public class AutocompleteController extends VitroAjaxController {
|
|||
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
|
||||
//which is what we want so need to convert to an object instad
|
||||
JSONObject toJSONObject() {
|
||||
|
|
Loading…
Add table
Reference in a new issue