com.puppycrawl.tools.checkstyle.checks.whitespace

Class WhitespaceAfterCheck

public class WhitespaceAfterCheck extends Check

Checks that a token is followed by whitespace, with the exception that it does not check for whitespace after the semicolon of an empty for iterator. Use Check EmptyForIteratorPad to validate empty for iterators.

By default the check will check the following tokens: COMMA, SEMI, TYPECAST.

An example of how to configure the check is:

 <module name="WhitespaceAfter"/>
 

An example of how to configure the check for whitespace only after COMMA and SEMI tokens is:

 <module name="WhitespaceAfter">
     <property name="tokens" value="COMMA, SEMI"/>
 </module>
 

Version: 1.0

Author: Oliver Burn Rick Giles

Method Summary
int[]getDefaultTokens()
voidvisitToken(DetailAST aAST)

Method Detail

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc }

visitToken

public void visitToken(DetailAST aAST)
{@inheritDoc }