diff --git a/JSONObject.java b/JSONObject.java index 852358b33..03fb3467d 100644 --- a/JSONObject.java +++ b/JSONObject.java @@ -1842,7 +1842,7 @@ public Writer write(Writer writer, int indentFactor, int indent) * @return a java.util.Map containing the entrys of this object */ public Map toMap() { - Map results = new HashMap<>(); + Map results = new HashMap(); for (Entry entry : this.map.entrySet()) { Object value; if (entry.getValue() == null || NULL.equals(entry.getValue())) {