All Downloads are FREE. Search and download functionalities are using the official Maven repository.

resources.report.rules.pmd.UselessOverridingMethod.html Maven / Gradle / Ivy



UselessOverridingMethod


UselessOverridingMethod

The overriding method merely calls the same method defined in a superclass

This rule is defined by the following Java class: net.sourceforge.pmd.rules.UselessOverridingMethod

Example:

                
public void foo(String bar) {
    super.foo(bar);      //Why bother overriding?
}
        
            

Example:

                
public String foo() {
    return super.foo();  //Why bother overriding?
}
        
            




© 2015 - 2025 Weber Informatics LLC | Privacy Policy