mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 02:35:33 +08:00
chore(#887): signature minor edit
This commit is contained in:
@@ -523,10 +523,10 @@ public class JSONTokener {
|
|||||||
|
|
||||||
Object stringToValue = JSONObject.stringToValue(string);
|
Object stringToValue = JSONObject.stringToValue(string);
|
||||||
|
|
||||||
return strictMode ? getValidNumberOrBooleanFromObject(stringToValue) : stringToValue;
|
return strictMode ? getValidNumberBooleanOrNullFromObject(stringToValue) : stringToValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Object getValidNumberOrBooleanFromObject(Object value) {
|
private Object getValidNumberBooleanOrNullFromObject(Object value) {
|
||||||
if (value instanceof Number || value instanceof Boolean || value.equals(JSONObject.NULL)) {
|
if (value instanceof Number || value instanceof Boolean || value.equals(JSONObject.NULL)) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user