If statements with conditions that are always either true or false are not required, and make the code less readable.
The following code:
public void myMethod() { if (true) { // Non-Compliant doSomething(); } }
should be refactored into:
public void myMethod() { doSomething(); // Compliant }
and the following code:
public void myMethod() { if (false) { // Non-Compliant doSomething(); } }
should be refactored into:
public void myMethod() { // Compliant }