Skip to content

Commit f92f281

Browse files
committed
Updating to work with java 1.6
1 parent 8ccf5d7 commit f92f281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3450,9 +3450,9 @@ private <T> Collection<T> fromJsonArray(JSONArray jsonArray, Class<?> collection
34503450
*/
34513451
private Collection getCollection(Class<?> collectionType) throws JSONException {
34523452
if (collectionType == List.class || collectionType == ArrayList.class) {
3453-
return new ArrayList<>();
3453+
return new ArrayList();
34543454
} else if (collectionType == Set.class || collectionType == HashSet.class) {
3455-
return new HashSet<>();
3455+
return new HashSet();
34563456
} else {
34573457
throw new JSONException("Unsupported Collection type: " + collectionType.getName());
34583458
}

0 commit comments

Comments
 (0)