Jtest logo




Contents  Previous  Next  Index

UC.PF


Avoid unused "private" fields

Description

This rule flags any unused "private" field.

Example

 package UC;
 
 class PF {
     private int _instanceField;
     private static int _staticField;
 }

Repair

An unused field may indicate a logical flaw in the corresponding class. In this case, the class needs to be modified to take the unused field into account.


Contents  Previous  Next  Index

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