diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/NoWhitespaceAfterCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/NoWhitespaceAfterCheck.java
index 16fa86c06629..f23b431e1247 100644
--- a/src/main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/NoWhitespaceAfterCheck.java
+++ b/src/main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/NoWhitespaceAfterCheck.java
@@ -49,7 +49,7 @@
*
*
* -
- * Property {@code allowLineBreaks} - Control whether whitespace is flagged at linebreaks.
+ * Property {@code allowLineBreaks} - Control whitespace is allowed if the token is at a linebreak.
* Default value is {@code true}.
*
* -
@@ -111,7 +111,7 @@ public class NoWhitespaceAfterCheck extends AbstractCheck {
*/
public static final String MSG_KEY = "ws.followed";
- /** Control whether whitespace is flagged at linebreaks. */
+ /** Control whitespace is allowed if the token is at a linebreak. */
private boolean allowLineBreaks = true;
@Override
@@ -157,7 +157,7 @@ public int[] getRequiredTokens() {
}
/**
- * Setter to control whether whitespace is flagged at linebreaks.
+ * Setter to control whitespace is allowed if the token is at a linebreak.
* @param allowLineBreaks whether whitespace should be
* flagged at linebreaks.
*/
diff --git a/src/xdocs/config_whitespace.xml b/src/xdocs/config_whitespace.xml
index a84cacd397f7..d5eb8762f7a2 100644
--- a/src/xdocs/config_whitespace.xml
+++ b/src/xdocs/config_whitespace.xml
@@ -1059,7 +1059,7 @@ import static java.math.BigInteger.ZERO;
allowLineBreaks |
- Control whether whitespace is flagged at linebreaks.
+ Control whitespace is allowed if the token is at a linebreak.
|
Boolean |
true |