1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

Merge pull request #226 from stleary/restore-1.6-compatibility

fix to compile with 1.6.0_45
This commit is contained in:
Sean Leary 2016-05-01 22:59:29 -05:00
commit ebf08f5651

View file

@ -1842,7 +1842,7 @@ public class JSONObject {
* @return a java.util.Map containing the entrys of this object * @return a java.util.Map containing the entrys of this object
*/ */
public Map<String, Object> toMap() { public Map<String, Object> toMap() {
Map<String, Object> results = new HashMap<>(); Map<String, Object> results = new HashMap<String, Object>();
for (Entry<String, Object> entry : this.map.entrySet()) { for (Entry<String, Object> entry : this.map.entrySet()) {
Object value; Object value;
if (entry.getValue() == null || NULL.equals(entry.getValue())) { if (entry.getValue() == null || NULL.equals(entry.getValue())) {