Java

Java

Made by DeepSource

Method superfluously delegates to parent class method JAVA-W1016

Anti-pattern
Minor
Autofix

This method appears to only call its superclass implementation, while directly passing its parameters to the super method. This method can be removed, as it provides no additional value.

Bad Practice

@Override
public String getName() {
    return super.getName();
}

This getName method is redundant, since the same behavior would occur even without explicitly overriding the parent method.

Recommended

Remove the redundant overriding method. If this was not intended, and there is further logic to be implemented, consider marking this method with a TODO comment to ensure it is not missed in future work.

@Override
public String getName() {
    // TODO: this method requires extra logic to be implemented.
    return super.getName();
}

References