com.puppycrawl.tools.checkstyle.checks.coding
public class EmptyStatementCheck extends Check
Detects empty statements (standalone ';'). Empty statements often introduce bugs that are hard to spot, such as in
if (someCondition); doConditionalStuff(); doUnconditionalStuff();
An example of how to configure the check is:
<module name="EmptyStatement"/>
Version: 1.0
Method Summary | |
---|---|
int[] | getDefaultTokens() {@inheritDoc} |
void | visitToken(DetailAST aAST) {@inheritDoc} |