Skip to content

Add toString, equals, hashCode in JsonMergePatch#56

Merged
lukasj merged 2 commits intoeclipse-ee4j:masterfrom
jbescos:issue19
May 25, 2022
Merged

Add toString, equals, hashCode in JsonMergePatch#56
lukasj merged 2 commits intoeclipse-ee4j:masterfrom
jbescos:issue19

Conversation

@jbescos
Copy link
Member

@jbescos jbescos commented May 5, 2022

Relates to #19

Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
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 <jorge.bescos.gascon@oracle.com>
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