minor flaw in generate equals/hashcode

...if you deselect some fields, IDEA nevertheless asks you if they are non-null

0
1 comment

..if you deselect some fields, IDEA nevertheless asks you if they are non-null

+1. And if you deselect them when asked about equals(), they're
nevertheless offered in the hashCode() step, which may break
equals()/hashCode() contract (equal objects must have equal hashCodes)

0

Please sign in to leave a comment.