From c0e20524a671bba23035623b4035ba3abb656d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20K=C3=BChne?= Date: Tue, 19 Oct 2004 21:25:37 +0000 Subject: [PATCH] improved docs --- .../checkstyle/checks/coding/EmptyStatementCheck.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: *