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:
commit
ebf08f5651
1 changed files with 1 additions and 1 deletions
|
@ -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())) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue