IdentityBinaryExpression
Writing "a && a", "a || a", "a & a", or "a | a" is equivalent to "a".

Category
JDK
Severity
ERROR
Maturity

The problem

Writing a && a, a || a, a & a, or a | a is equivalent to a.

Suppression

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