Pattern: Unnecessary final
on private method
Issue: -
A private method is marked final
. Private methods cannot be overridden, so marking it final
is unnecessary.
Example of violations:
private final method() {}
Pattern: Unnecessary final
on private method
Issue: -
A private method is marked final
. Private methods cannot be overridden, so marking it final
is unnecessary.
Example of violations:
private final method() {}