RedundantCondition
Redundant usage of a boolean variable with known value

Severity
WARNING
Has Fix?

The problem

If a boolean is enforced to have a certain value in an if statement and then used as part of a condition within the block, it is redundant.

To fix the problem, replace the variable with true in inner statement.

Suppression

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