com.puppycrawl.tools.checkstyle.checks.coding

Class MultipleVariableDeclarationsCheck

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"/>
 

Author: o_sukhodolsky

Constructor Summary
MultipleVariableDeclarationsCheck()
Creates new instance of the check.
Method Summary
int[]getDefaultTokens()
{@inheritDoc}
voidvisitToken(DetailAST aAST)
{@inheritDoc}

Constructor Detail

MultipleVariableDeclarationsCheck

public MultipleVariableDeclarationsCheck()
Creates new instance of the check.

Method Detail

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc}

visitToken

public void visitToken(DetailAST aAST)
{@inheritDoc}