Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: Max Thonagel <12283268+thoniTUB@users.noreply.github.com>
  • Loading branch information
thoniTUB committed Mar 17, 2023
1 parent f809860 commit 105463f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ private void test(T value, T expected, ObjectMapper mapper) throws IOException {
}
ValidatorHelper.failOnError(log, validator.validate(copy));

//because IdentifiableImp cashes the hash
if (forceHashCodeEqual) {
assertThat(copy.hashCode()).isEqualTo(value.hashCode());
}

// Preliminary check that ids of identifiables are equal
if (value instanceof IdentifiableImpl identifiableValue) {
assertThat(((IdentifiableImpl<?>) copy).getId()).as("the serialized value").isEqualTo(identifiableValue.getId());
}
Expand Down

0 comments on commit 105463f

Please sign in to comment.