Skip to content

Commit 1d5e3de

Browse files
committed
Updating to work with java 1.6
1 parent 2155516 commit 1d5e3de

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
@@ -3531,7 +3531,7 @@ private <E extends Enum<E>> E stringToEnum(Class<?> enumClass, String value) thr
35313531
@SuppressWarnings("unchecked")
35323532
Method valueOfMethod = enumClass.getMethod("valueOf", String.class);
35333533
return (E) valueOfMethod.invoke(null, value);
3534-
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
3534+
} catch (Exception e) {
35353535
throw new JSONException("Failed to convert string to enum: " + value + " for " + enumClass.getName(), e);
35363536
}
35373537
}

0 commit comments

Comments
 (0)