Skip to content

Commit

Permalink
Simplify Number comparison during wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
John J. Aylward committed Aug 15, 2016
1 parent 7232a95 commit 2e33310
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -1732,12 +1732,8 @@ public static Object wrap(Object object) {
}
if (object instanceof JSONObject || object instanceof JSONArray
|| NULL.equals(object) || object instanceof JSONString
|| 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 Number || object instanceof Character
|| object instanceof Boolean || object instanceof String) {
return object;
}

Expand Down

0 comments on commit 2e33310

Please sign in to comment.