Skip to content

Different value checks in equals() and hashcode() #1019

Answered by jqno
bjmi asked this question in Q&A
Discussion options

You must be logged in to vote

You can suppress Warning.STRICT_HASHCODE:

EqualsVerifier
    .forClass(Document.class)
    .suppress(Warning.NULL_FIELDS, Warning.STRICT_HASHCODE)
    .verify();

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bjmi
Comment options

Answer selected by bjmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants