Reports methods with empty parameter clause that override Java accessor methods.

Methods that follow the JavaBean naming contract for accessors are expected to have no side effects. The recommended convention is to use a parameterless method whenever there are no parameters and the method have no side effect. This convention promotes the uniform access principle, which says that the client code should not be affected by the decision to implement an attribute as a field or method.

The problem is that Java does not implement the uniform access principle and doesn't allow methods without parameter clauses. To bridge that gap, Scala allows you to override methods with empty parameter clauses with methods without parameter clauses.

The quick-fix removes the empty parameter clause.

Example:


  class TestException extends Exception {
    override def getMessage(): String = ???
  }

After the quick-fix is applied:


  class TestException extends Exception {
    override def getMessage: String = ???
  }