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.
|