Jtest logo




Contents  Previous  Next  Index

UC.AUV


Avoid unused local variables

Description

This rule flags any unused local variable in your methods.

Example

 package UC;
 
 public class AUV {
     void method () {
         int i = 4;
     }
 }

Repair

An unused variable may indicate a logical flaw in the corresponding method. In this case, the method needs to be rewritten to take the unused variable into account.


Contents  Previous  Next  Index

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