Skip to content

Commit

Permalink
Collapse identical catch blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Apr 24, 2024
1 parent 5d4d013 commit f6a5bcf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/net/sf/json/JSONArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,7 @@ public static Collection toCollection(JSONArray jsonArray, JsonConfig jsonConfig
} else {
try {
collection = (Collection) collectionType.newInstance();
} catch (InstantiationException e) {
throw new JSONException(e);
} catch (IllegalAccessException e) {
} catch (InstantiationException | IllegalAccessException e) {
throw new JSONException(e);
}
}
Expand Down

0 comments on commit f6a5bcf

Please sign in to comment.