Reports calls to methods with mutator-like names without argument clauses.

Scala allows calling parameterless Java methods without argument clauses. This is mainly to allow Scala code to use parameterless Java accessor methods the same way as Scala accessor methods. Namely without any argument clause and thereby adhere to theuniform access principle, which says that the client code should not be affected by the decision to implement an attribute as a field or method.

For methods with side effects, however, it is convention to use an empty argument clause.

The quick-fix adds an empty argument clause.

Example:


  val stringBuilder = new java.util.ArrayList[String]
  stringBuilder.clear

After the quick-fix is applied:


  val stringBuilder = new java.util.ArrayList[String]
  stringBuilder.clear()