Skip to content

Commit 7851e9b

Browse files
author
John J. Aylward
committed
revert back changes to Number support
1 parent 91107e3 commit 7851e9b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

JSONObject.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,9 +1733,12 @@ public static Object wrap(Object object) {
17331733
}
17341734
if (object instanceof JSONObject || object instanceof JSONArray
17351735
|| NULL.equals(object) || object instanceof JSONString
1736-
|| object instanceof Number || object instanceof Character
1737-
|| object instanceof Boolean || object instanceof String
1738-
|| object instanceof Enum) {
1736+
|| object instanceof Byte || object instanceof Character
1737+
|| object instanceof Short || object instanceof Integer
1738+
|| object instanceof Long || object instanceof Boolean
1739+
|| object instanceof Float || object instanceof Double
1740+
|| object instanceof String || object instanceof BigInteger
1741+
|| object instanceof BigDecimal || object instanceof Enum) {
17391742
return object;
17401743
}
17411744

0 commit comments

Comments
 (0)