1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

revert back changes to Number support

This commit is contained in:
John J. Aylward 2016-08-15 10:24:38 -04:00
parent 91107e3e82
commit 7851e9b2e8

View file

@ -1733,9 +1733,12 @@ public class JSONObject {
}
if (object instanceof JSONObject || object instanceof JSONArray
|| NULL.equals(object) || object instanceof JSONString
|| object instanceof Number || object instanceof Character
|| object instanceof Boolean || object instanceof String
|| object instanceof Enum) {
|| object instanceof Byte || object instanceof Character
|| object instanceof Short || object instanceof Integer
|| object instanceof Long || object instanceof Boolean
|| object instanceof Float || object instanceof Double
|| object instanceof String || object instanceof BigInteger
|| object instanceof BigDecimal || object instanceof Enum) {
return object;
}