Error with no HashCode, Equals eclipse
Question
I'm looking for a very specific eclipse plugin that will tell me if a class in my project is not implementing hashCode or/and equals methods.
Does anyone know of such a plugin?
Thanks
Solution
Can you not use the Checkstyle plugin and write your own Checkstyle rule? (There's a Checkstyle rule for overriding equals but not hashCode, but nothing to make sure that both are implemented for all classes, AFAIK.)
OTHER TIPS
Or you can use findbugs
The rule HE_EQUALS_NO_HASHCODE does what you want, and there is a plugin for eclipse
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow