Skip to content
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

fixed id comparison in _equals #146

Merged
merged 1 commit into from
Dec 19, 2021
Merged

Conversation

cernautan
Copy link
Contributor

I think the protected boolean _equals(JsonSchema that) contains an issue on the 'id' comparison line. It should be equals(getId(), that.getId()) instead of the current code that is equals(getId(), getId()).

I think the protected boolean _equals(JsonSchema that) contains an issue on the 'id' comparison line. It should be equals(getId(), that.getId()) instead of the current code that is  equals(getId(), getId()).
@cowtowncoder
Copy link
Member

Looks like a legit fix, will merge. Would be great to have a unit test to verify but implementation looks wrong so...

@cowtowncoder cowtowncoder merged commit 954205b into FasterXML:master Dec 19, 2021
@cowtowncoder cowtowncoder modified the milestone: 2.123 Dec 19, 2021
cowtowncoder added a commit that referenced this pull request Dec 19, 2021
@cowtowncoder cowtowncoder added this to the 2.13.2 milestone Dec 19, 2021
@cernautan cernautan deleted the patch-1 branch December 19, 2021 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants