com.puppycrawl.tools.checkstyle.checks.modifier
public class ModifierOrderCheck extends Check
Checks that the order of modifiers conforms to the suggestions in the Java Language specification, sections 8.1.1, 8.3.1 and 8.4.3. The correct order is:
Rationale: Code is easier to read if everybody follows a standard.
An example of how to configure the check is:
<module name="ModifierOrder"/>
Method Summary | |
---|---|
int[] | getDefaultTokens() {@inheritDoc} |
void | visitToken(DetailAST aAST) {@inheritDoc} |