SelfEquals
Testing an object for equality with itself will always be true.

Severity
ERROR

The problem

The arguments to equals method are the same object, so it always returns true. Either change the arguments to point to different objects or substitute true.

For test cases, instead of explicitly testing equals, use EqualsTester from Guava.

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("SelfEquals") to the enclosing element.