1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

instanceof Enum

This commit is contained in:
Douglas Crockford 2012-07-03 09:56:32 -07:00
parent 5b18f02eee
commit d15e77697a

View file

@ -90,7 +90,7 @@ import java.util.ResourceBundle;
* </ul>
*
* @author JSON.org
* @version 2012-05-29
* @version 2012-07-02
*/
public class JSONObject {
@ -1450,7 +1450,7 @@ public class JSONObject {
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;
}