-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positives in JSONObject.similar() and JSONArray.similar()? #379
Comments
enoes
changed the title
False positives in JSONObject.similar() ans JSONArray.similar()?
False positives in JSONObject.similar() and JSONArray.similar()?
Nov 6, 2017
Yes, you did. Those lines are determining if the 2 references in memory are the same. If they are, there is no way their child objects could differ. |
wait, you may be correct. @stleary , let me make a test case just to confirm. it's possible that those |
johnjaylward
added a commit
to johnjaylward/JSON-java
that referenced
this issue
Nov 6, 2017
This was referenced Nov 6, 2017
Issue resolved. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm afraid the for-loops in the above mentioned methods are breaking to soon if only one similarity was detected, see line 1487 in JSONObject.java and 1292 in JSONArray.java. Or did I overlook something?
The text was updated successfully, but these errors were encountered: