1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-16 23:40:51 -07:00

fix for issue #379

This commit is contained in:
John J. Aylward 2017-11-06 10:28:28 -05:00
parent f16682bf44
commit 4a4b2db8c1
3 changed files with 5 additions and 2 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
# ignore eclipse project files
.project
.classpath

View file

@ -1289,7 +1289,7 @@ public class JSONArray implements Iterable<Object> {
Object valueThis = this.myArrayList.get(i);
Object valueOther = ((JSONArray)other).myArrayList.get(i);
if(valueThis == valueOther) {
return true;
continue;
}
if(valueThis == null) {
return false;

View file

@ -1844,7 +1844,7 @@ public class JSONObject {
Object valueThis = entry.getValue();
Object valueOther = ((JSONObject)other).get(name);
if(valueThis == valueOther) {
return true;
continue;
}
if(valueThis == null) {
return false;