Reports calls to Java accessor methods with empty argument clauses.

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. To bridge that gap, Scala allows you to leave off the empty parentheses on an invocation of a Java method that takes no arguments.

The quick-fix removes the empty argument clause.

Example:


  "test".getClass()

After the quick-fix is applied:


  "test".getClass