Java

Java

Made by DeepSource

Methods must not be empty JAVA-W1004

Anti-pattern
Minor

This method is empty and does not appear to have any explanation regarding why. This may confuse future readers of this code. Additionally, such code produces needless, avoidable clutter.

Bad Practice

void method() {

}

Recommended

If the method overrides a parent implementation and is left empty to prevent default behavior, consider documenting why with a comment:

@Override
void method() {
    // left empty because of ...
}