com.puppycrawl.tools.checkstyle.checks.coding
public class MultipleVariableDeclarationsCheck extends Check
Checks that each variable declaration is in its own statement and on its own line.
Rationale: the SUN Code conventions chapter 6.1 recommends that declarations should be one per line.
An example of how to configure the check is:
<module name="MultipleVariableDeclarations"/>
Constructor Summary | |
---|---|
MultipleVariableDeclarationsCheck() Creates new instance of the check. |
Method Summary | |
---|---|
int[] | getDefaultTokens() {@inheritDoc} |
void | visitToken(DetailAST aAST) {@inheritDoc} |