UC.PM
Avoid unused "private" methods
Description
This rule flags any unused "private" method.
Example
package UC;
class PM {
private int unusedMethod () {}
private static int unusedStaticMethod () {}
}
Repair
An unused method may indicate a logical flaw in the corresponding class. In this case, the class needs to be rewritten to take the unused method into account.
|