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

Add toString, equals, hashCode in JsonMergePatch #56

Merged
merged 2 commits into from
May 25, 2022

Conversation

jbescos
Copy link
Member

@jbescos jbescos commented May 5, 2022

Relates to #19

return true;
if (obj == null || obj.getClass() != JsonMergePatchImpl.class)
return false;
return patch.equals(((JsonMergePatchImpl)obj).patch);
Copy link
Member

@lukasj lukasj May 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to use Objects.equals() (and Objects.hashCode() here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@lukasj lukasj linked an issue May 25, 2022 that may be closed by this pull request
Signed-off-by: Jorge Bescos Gascon <[email protected]>
Copy link
Member

@lukasj lukasj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lukasj lukasj merged commit 3b895fc into eclipse-ee4j:master May 25, 2022
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.

Missing overridden method JsonMergePatch.toString()
2 participants