com.puppycrawl.tools.checkstyle.checks.whitespace
public class EmptyForInitializerPadCheck extends AbstractOptionCheck
Checks the padding of an empty for initializer; that is whether a space is required at an empty for initializer, or such spaces are forbidden. No check occurs if there is a line wrap at the initializer, as in
for ( ; i < j; i++, j--)
The policy to verify is specified using the {@link PadOption} class and defaults to {@link PadOption#NOSPACE}.
An example of how to configure the check is:
<module name="EmptyForInitializerPad"/>
Version: 1.0
Constructor Summary | |
---|---|
EmptyForInitializerPadCheck()
Sets the paren pad otion to nospace. |
Method Summary | |
---|---|
int[] | getDefaultTokens() {@inheritDoc} |
void | visitToken(DetailAST aAST) {@inheritDoc} |