com.puppycrawl.tools.checkstyle.checks.whitespace
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 {@link EmptyForIteratorPadCheck EmptyForIteratorPad} to validate empty for iterators.
By default the check will check the following tokens: {@link TokenTypes#COMMA COMMA}, {@link TokenTypes#SEMI SEMI}, {@link TokenTypes#TYPECAST 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 {@link TokenTypes#COMMA COMMA} and {@link TokenTypes#SEMI SEMI} tokens is:
<module name="WhitespaceAfter"> <property name="tokens" value="COMMA, SEMI"/> </module>
Version: 1.0
Method Summary | |
---|---|
int[] | getDefaultTokens() {@inheritDoc} |
void | visitToken(DetailAST aAST) {@inheritDoc} |