Skip to content
This repository was archived by the owner on Mar 20, 2021. It is now read-only.

override of equals method to delegate this functionality to the equal… - #4401

Open
dennysq wants to merge 1 commit into
javaee:masterfrom
dennysq:patch-1
Open

override of equals method to delegate this functionality to the equal…#4401
dennysq wants to merge 1 commit into
javaee:masterfrom
dennysq:patch-1

Conversation

@dennysq

@dennysq dennysq commented Jul 2, 2019

Copy link
Copy Markdown

…s method of value object

Validation Error: Value is not valid, this error is raising due to a bad implementation of object equals method

…s method of value object

Validation Error: Value is not valid, this error is raising due to a bad implementation of object equals method

@Override
public boolean equals(Object obj) {
return this.getValue().equals(obj.getValue());

@pzygielo pzygielo Jul 2, 2019

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't think there is such method as Object.getValue().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants