An override of a method that delegates its implementation to the super method is redundant, and can be removed.
For example, the equals
method in the following class implementation can be
deleted.
class Test {
@Override
public boolean equals(Object o) {
return super.equals(o);
}
}
Suppress false positives by adding the suppression annotation @SuppressWarnings("RedundantOverride")
to the enclosing element.