fix toString

This commit is contained in:
Looly 2020-04-17 18:02:45 +08:00
parent 9c3bf7b6ca
commit 4d701be722
2 changed files with 2 additions and 10 deletions

View File

@ -520,11 +520,7 @@ public class JSONArray implements JSON, JSONGetter<Integer>, List<Object>, Rando
*/
@Override
public String toString() {
try {
return this.toJSONString(0);
} catch (Exception e) {
return null;
}
return this.toJSONString(0);
}
@Override

View File

@ -551,11 +551,7 @@ public class JSONObject implements JSON, JSONGetter<String>, Map<String, Object>
*/
@Override
public String toString() {
try {
return this.toJSONString(0);
} catch (Exception e) {
return null;
}
return this.toJSONString(0);
}
@Override