Error without HashCode, Equals eclipse

I am looking for a very specific eclipse plugin that will tell me if the class in my project does not implement hashCode or / and equals methods.

Does anyone know about such a plugin?

thank

+3
source share
2 answers

Can you use the Checkstyle plugin and write your own Checkstyle rule? (There's a Checkstyle rule for overriding peers, but not hashCode, but nothing to make sure they are both implemented for all classes, AFAIK.)

+2
source

Or you can use findbugs

The HE_EQUALS_NO_HASHCODE rule does what you want and there is a plugin for eclipse

+4

Source: https://habr.com/ru/post/1698200/


All Articles