Skip to content

Commit 19a559b

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

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
@@ -3500,8 +3500,8 @@ else if (!rawType.isPrimitive() && !rawType.isEnum() && value instanceof JSONObj
35003500
*/
35013501
private Map<?, ?> convertToMap(JSONObject jsonMap, Type keyType, Type valueType, Class<?> mapType) throws JSONException {
35023502
try {
3503-
InstanceCreator<?> creator = collectionMapping.getOrDefault(mapType, new InstanceCreator<List>() {
3504-
public List create() {
3503+
InstanceCreator<?> creator = collectionMapping.getOrDefault(mapType, new InstanceCreator<Map>() {
3504+
public Map create() {
35053505
return new HashMap();
35063506
}
35073507
});

0 commit comments

Comments
 (0)