Skip to content

Commit d15e776

Browse files
instanceof Enum
1 parent 5b18f02 commit d15e776

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JSONObject.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ of this software and associated documentation files (the "Software"), to deal
9090
* </ul>
9191
*
9292
* @author JSON.org
93-
* @version 2012-05-29
93+
* @version 2012-07-02
9494
*/
9595
public class JSONObject {
9696

@@ -1450,7 +1450,7 @@ public static Object wrap(Object object) {
14501450
object instanceof Short || object instanceof Integer ||
14511451
object instanceof Long || object instanceof Boolean ||
14521452
object instanceof Float || object instanceof Double ||
1453-
object instanceof String) {
1453+
object instanceof String || object instanceof Enum) {
14541454
return object;
14551455
}
14561456

0 commit comments

Comments
 (0)