MethodCanBeStatic
Private methods that do not reference the enclosing instance should be static

Category
JDK
Severity
SUGGESTION
Maturity

The problem

A non-override, non-overrideable method that never accesses this (explicitly or implicitly) is already a static method in spirit. By adding static explicitly,

Of course, if the method develops a need to access instance state in the future, just remove the static keyword at that time. If any calls had accrued in static contexts, you’ll have to revisit them, but that should be no worse than if those callers were unable to use the method in the first place.

Suppression

Suppress false positives by adding an @SuppressWarnings("MethodCanBeStatic") annotation to the enclosing element.