mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-09 03:54:36 +08:00
* Adds protected entrySet accessor to JSONObject
* Updates loops that request key/value pairs to use the new entrySet accessor
This commit is contained in:
@@ -1263,8 +1263,14 @@ public class JSONArray implements Iterable<Object> {
|
||||
return false;
|
||||
}
|
||||
for (int i = 0; i < len; i += 1) {
|
||||
Object valueThis = this.get(i);
|
||||
Object valueOther = ((JSONArray)other).get(i);
|
||||
Object valueThis = this.myArrayList.get(i);
|
||||
Object valueOther = ((JSONArray)other).myArrayList.get(i);
|
||||
if(valueThis == valueOther) {
|
||||
return true;
|
||||
}
|
||||
if(valueThis == null) {
|
||||
return false;
|
||||
}
|
||||
if (valueThis instanceof JSONObject) {
|
||||
if (!((JSONObject)valueThis).similar(valueOther)) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user