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