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:
parent
5b18f02eee
commit
d15e77697a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue