Jtest logo




Contents  Previous  Next  Index

NAMING.NSF


Enforce name format of non-"final" "static" fields

Description

This rule flags any "static" field that has an unconventional name format.

Most programmers or groups of programmers develop a set of naming rules for "static" fields. Jtest will enforce the name format of the field using a regular expression.

Example

 package NAMING;
 
 class NSF {
     static int staticField = 0;
 }

Repair

Change the name of the field to match the regular expression.


Contents  Previous  Next  Index

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