mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 02:35:33 +08:00
fix for issue #379
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# ignore eclipse project files
|
||||||
|
.project
|
||||||
|
.classpath
|
@@ -1289,7 +1289,7 @@ public class JSONArray implements Iterable<Object> {
|
|||||||
Object valueThis = this.myArrayList.get(i);
|
Object valueThis = this.myArrayList.get(i);
|
||||||
Object valueOther = ((JSONArray)other).myArrayList.get(i);
|
Object valueOther = ((JSONArray)other).myArrayList.get(i);
|
||||||
if(valueThis == valueOther) {
|
if(valueThis == valueOther) {
|
||||||
return true;
|
continue;
|
||||||
}
|
}
|
||||||
if(valueThis == null) {
|
if(valueThis == null) {
|
||||||
return false;
|
return false;
|
||||||
|
@@ -1844,7 +1844,7 @@ public class JSONObject {
|
|||||||
Object valueThis = entry.getValue();
|
Object valueThis = entry.getValue();
|
||||||
Object valueOther = ((JSONObject)other).get(name);
|
Object valueOther = ((JSONObject)other).get(name);
|
||||||
if(valueThis == valueOther) {
|
if(valueThis == valueOther) {
|
||||||
return true;
|
continue;
|
||||||
}
|
}
|
||||||
if(valueThis == null) {
|
if(valueThis == null) {
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user