Jtest logo




Contents  Previous  Next  Index

NAMING.CVN


Use conventional variable names

Description

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

Use conventional variable names for one-character names.

  • b for a byte
  • c for a char
  • d for a double
  • f for a float
  • i, j, and k for integers
  • l for a long
  • o for an Object
  • s for a String
  • v for an arbitrary value of some type

Example

 package NAMING;
 
 public class CVN {
     void method () {
         int b = 1;
         int d = 1;
     }
 }

Repair

Use conventional variable names.


Contents  Previous  Next  Index

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