diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/coding/EmptyStatementCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/coding/EmptyStatementCheck.java index 951c57d35..96ce2584c 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/coding/EmptyStatementCheck.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/coding/EmptyStatementCheck.java @@ -25,8 +25,15 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST; /** *

- * Check that finds empty statements. + * 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: *