From f24ef8374cc0c496d7c0ddc0a681b951b837fd75 Mon Sep 17 00:00:00 2001 From: Roman Ivanov Date: Fri, 1 May 2015 00:18:40 -0700 Subject: [PATCH] fix for typo in documentation. Issue #1017 --- .../tools/checkstyle/checks/design/OneTopLevelClassCheck.java | 4 +++- src/xdocs/config_design.xml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/checks/design/OneTopLevelClassCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/checks/design/OneTopLevelClassCheck.java index 3a1969ce4..3f9d6efa2 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/checks/design/OneTopLevelClassCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/checks/design/OneTopLevelClassCheck.java @@ -76,7 +76,9 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes; * } * * - * ATTENTION: This Check does support customization of validated token + *

ATTENTION: This Check does not support customization of validated tokens, + * so do not use the "tokens" property. + *

* * @author maxvetrenko */ diff --git a/src/xdocs/config_design.xml b/src/xdocs/config_design.xml index f66b6dd5e..b33d3a576 100644 --- a/src/xdocs/config_design.xml +++ b/src/xdocs/config_design.xml @@ -682,7 +682,7 @@ public class StringUtils // not final to allow subclassing <module name="OneTopLevelClass"/>

- ATTENTION: This Check does support customization of validated token, to not use "tokens" property + ATTENTION: This Check does not support customization of validated tokens, so do not use the "tokens" property.

An example of code with violations: