I need example configuration to totally disable check-style for hashCode()
and equals()
methods.
See EqualsHashCode in Checkstyle 5.5: Coding Config. Just remove the
<module name="EqualsHashCode"/>
from your checkstyle configuration file, or do it through the Eclipse plugin. But I would ask myself why you're doing this. Bad implementation of equals() and hashCode() is a common source of errors, so be very careful before you do this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With