You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be awesome if EqualsVerifier could check for non-transient fields that
are not used in the definition of "equals". Frequently I use Eclipse to
autogenerate equals/hashCode, but I might forget to re-generate after adding a
new field.
A suggested implementation and unit tests:
https://gist.github.com/1640709
https://gist.github.com/1640722
Original issue reported on code.google.com by [email protected] on 19 Jan 2012 at 10:50
The text was updated successfully, but these errors were encountered:
I've added this feature to version 1.1, which is available now!
I did deviate from your proposed solution a little bit though: I decided to
name the method "allFieldsShouldBeUsed()" instead of "checkUnusedFields()",
because I thing that name is a bit more expressive.
Original issue reported on code.google.com by
[email protected]
on 19 Jan 2012 at 10:50The text was updated successfully, but these errors were encountered: