EmptyStatementBlock - lpohl-Reply/pmd-github-action GitHub Wiki

Rule: EmptyStatementBlock

Message

Avoid empty block statements.

Description

Empty block statements serve no purpose and should be removed.

Priority

3

Example

public class Foo {

   private Integer _bar;

   public void setBar(Integer bar) {
        // empty
   }

}