UnnecessarySemicolon
Unnecessary semicolons should be omitted. For empty block statements, prefer {}.

Severity
WARNING

The problem

The Java language allows optional semicolons in a few places where they serve no purpose and can be distracting:

When a statement is required as the body of a control flow statement, for example an if or while, prefer using {} to ; for empty control flow statements. That is, prefer this:

while (true) {}

to this:

while (true) ;

Suppression

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