Jtest logo




Contents  Previous  Next  Index

NAMING.NMP


Enforce name format of method parameters

Description

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

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

Example

 package NAMING;
 
 public class NMP {
     void method (int i) {
         if (i == 10) return;
     }
 }

Repair

Change the name of the method parameter to match the regular expression.


Contents  Previous  Next  Index

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