Reports methods without parameter clauses that override methods with empty parameter clauses.
The convention is that a method should have parentheses if it has side effects. In accordance with the Liskov substitution principle, when an overridden method has a parameter clause, indicating a side effect, the overriding method must also be declared as a method with side effects.
The quick-fix adds an empty parameter clause.
Example:
class Base {
def x() = 1
}
class Impl extends Base {
override def x = 2
}
After the quick-fixes are applied:
class Base {
def x() = 1
}
class Impl extends Base {
override def x() = 2
}