Skip to content

Commit

Permalink
instanceof Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascrockford committed Jul 3, 2012
1 parent 5b18f02 commit d15e776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JSONObject.java
Expand Up @@ -90,7 +90,7 @@ of this software and associated documentation files (the "Software"), to deal
* </ul>
*
* @author JSON.org
* @version 2012-05-29
* @version 2012-07-02
*/
public class JSONObject {

Expand Down Expand Up @@ -1450,7 +1450,7 @@ public static Object wrap(Object object) {
object instanceof Short || object instanceof Integer ||
object instanceof Long || object instanceof Boolean ||
object instanceof Float || object instanceof Double ||
object instanceof String) {
object instanceof String || object instanceof Enum) {
return object;
}

Expand Down

0 comments on commit d15e776

Please sign in to comment.