Error with no HashCode, Equals eclipse

By : Henry B

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?


By : Henry B


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

By : Jon Skeet

Or you can use findbugs

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

By : VonC

This video can help you solving your question :)
By: admin