IdentityBinaryExpression
A binary expression where both operands are the same is usually incorrect.

Severity
ERROR
Has Fix?
NO_FIX

Alternate names: SelfEquality

The problem

a && a, a || a, a & a, or a | a
equivalent to a
a <= a, a >= a, or a == a
always true
a < a, a > a, a != a, or a ^ a
always false
a / a
always 1
a % a or a - a
always 0

Suppression

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