Skip to content

Commit 18af90c

Browse files
committed
Updating to work with java 1.6
1 parent 9c65bb7 commit 18af90c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/json/JSONObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3526,7 +3526,7 @@ public Map create() {
35263526
/**
35273527
* Converts a String to an Enum value.
35283528
*/
3529-
private <E extends Enum<E>> E stringToEnum(Class<E> enumClass, String value) throws JSONException {
3529+
private <E extends Enum<E>> E stringToEnum(Class<?> enumClass, String value) throws JSONException {
35303530
try {
35313531
@SuppressWarnings("unchecked")
35323532
Method valueOfMethod = enumClass.getMethod("valueOf", String.class);

0 commit comments

Comments
 (0)