クラスメンバーの間やブロックステートメントの中、クラス定義の後などに使用されているセミコロンをはじめとする不要なセミコロンを報告します。

このようなセミコロンは Java では有効ですが、冗長なため、除去できます。

例:


  class C {
    ;
    void m() throws Exception {
        try (AutoCloseable r1 = createAutoCloseable();) {
          ;
        }
    }
    ;
  }

クイックフィックス適用後:


  class C {
    void m() throws Exception {
      try (AutoCloseable r1 = createAutoCloseable()) {
      }
    }
  }