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
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;