We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c65bb7 commit 18af90cCopy full SHA for 18af90c
src/main/java/org/json/JSONObject.java
@@ -3526,7 +3526,7 @@ public Map create() {
3526
/**
3527
* Converts a String to an Enum value.
3528
*/
3529
- private <E extends Enum<E>> E stringToEnum(Class<E> enumClass, String value) throws JSONException {
+ private <E extends Enum<E>> E stringToEnum(Class<?> enumClass, String value) throws JSONException {
3530
try {
3531
@SuppressWarnings("unchecked")
3532
Method valueOfMethod = enumClass.getMethod("valueOf", String.class);
0 commit comments