Merge pull request #14194 from ulisseslima/bael-6253-quickfix_records
BAEL 6253 - quick fix - Overridding hashCode() and equals() for Records
This commit is contained in:
commit
0ac97ec5d9
@ -12,6 +12,10 @@ public boolean equals(Object other) {
|
||||
if (other == null) {
|
||||
return false;
|
||||
}
|
||||
if (!(other instanceof Movie)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Movie movie = (Movie) other;
|
||||
if (movie.name.equals(this.name) && movie.yearOfRelease.equals(this.yearOfRelease)) {
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user