Jtest logo




Contents  Previous  Next  Index

NAMING.NIF


Enforce name format of non-"static" fields

Description

This rule flags any non-"static" field with an unconventional name format.

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

Example

 package NAMING;
 
 class NIF {
     public int field = 0;
 }

Repair

Change the name of the non-"static" field to match the regular expression.

Reference

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


Contents  Previous  Next  Index

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