Jtest logo




Contents  Previous  Next  Index

NAMING.NSM


Enforce name format of "static" methods

Description

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

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

Example

 package NAMING;
 
 class NSM {
     static int staticMethod () {
     }
 }

Repair

Change the name of the "static" method to match the regular expression.


Contents  Previous  Next  Index

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