EmptyIf
Empty statement after if

Severity
ERROR

Alternate names: empty

The problem

An if statement contains an empty statement as the then clause. A semicolon may have been inserted by accident.

Suppression

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