Jtest logo




Contents  Previous  Next  Index

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.


Contents  Previous  Next  Index

ParaSoft logo
(888) 305-0041 info@parasoft.com Copyright © 1996-2001 ParaSoft