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 #380 from johnjaylward/FixFalsePositiveSimilar

Fix for false positives in similar functions
This commit is contained in:
Sean Leary 2017-11-11 16:12:06 -06:00 committed by GitHub
commit 28e09dc493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;