Skip to content
This repository has been 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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dennysq
Copy link

@dennysq dennysq commented Jul 2, 2019

…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());
Copy link

@pzygielo pzygielo Jul 2, 2019

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants