minor flaw in generate equals/hashcode

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

0

..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

请先登录再写评论。