Jtest logo




Contents  Previous  Next  Index

NAMING.NLV


Enforce name format of local variables

Description

This rule flags any local variable that has an unconventional name format.

Most programmers or groups of programmers develop a set of naming rules for local variables. Jtest will enforce the name format of the local variable using a regular expression.

Example

 package NAMING;
 
 public class NLV {
     void method () {
         int i = 0;
         i++;
     }
 }

Repair

Change the name of the local variable to match the regular expression. Use complete, descriptive English words.

Reference

http://www.AmbySoft.com/javaCodingStandards.pdf


Contents  Previous  Next  Index

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