Skip to content

Commit

Permalink
[FLINK-23311][tests] fix PojoSerializerTest user POJO not taking dumm…
Browse files Browse the repository at this point in the history
…5 into account for hashCode and equals
  • Loading branch information
NicoK committed Jul 16, 2021
1 parent 3ebbe60 commit f8e11e1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public TestUserClass(

@Override
public int hashCode() {
return Objects.hash(dumm1, dumm2, dumm3, dumm4, nestedClass);
return Objects.hash(dumm1, dumm2, dumm3, dumm4, dumm5, nestedClass);
}

@Override
Expand Down Expand Up @@ -167,6 +167,10 @@ public boolean equals(Object other) {
}
}
}
if ((dumm5 == null && otherTUC.dumm5 != null)
|| (dumm5 != null && !dumm5.equals(otherTUC.dumm5))) {
return false;
}

if ((nestedClass == null && otherTUC.nestedClass != null)
|| (nestedClass != null && !nestedClass.equals(otherTUC.nestedClass))) {
Expand Down

0 comments on commit f8e11e1

Please sign in to comment.