Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d15e776

Browse filesBrowse files
instanceof Enum
1 parent 5b18f02 commit d15e776
Copy full SHA for d15e776

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎JSONObject.java‎

Copy file name to clipboardExpand all lines: JSONObject.java
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.