From 945486004cc43c1f3f6f71ef1da2063e240105ae Mon Sep 17 00:00:00 2001 From: piyush kumar sadangi Date: Mon, 30 Oct 2023 17:16:02 +0530 Subject: [PATCH] Issue #13933: Migrate multiplestringliterals.xml.template to use properties --- ...checkstyle-non-main-files-suppressions.xml | 3 -- .../checks/coding/multiplestringliterals.xml | 24 ++-------- .../multiplestringliterals.xml.template | 48 ++----------------- 3 files changed, 9 insertions(+), 66 deletions(-) diff --git a/config/checkstyle-non-main-files-suppressions.xml b/config/checkstyle-non-main-files-suppressions.xml index bfe210c2790..2dd76cabf29 100644 --- a/config/checkstyle-non-main-files-suppressions.xml +++ b/config/checkstyle-non-main-files-suppressions.xml @@ -259,9 +259,6 @@ - - diff --git a/src/xdocs/checks/coding/multiplestringliterals.xml b/src/xdocs/checks/coding/multiplestringliterals.xml index dbca4183cad..8e12ccf0456 100644 --- a/src/xdocs/checks/coding/multiplestringliterals.xml +++ b/src/xdocs/checks/coding/multiplestringliterals.xml @@ -32,35 +32,21 @@ allowedDuplicates - - Specify the maximum number of occurrences to allow without generating a - warning. - + Specify the maximum number of occurrences to allow without generating a warning. int 1 3.5 ignoreOccurrenceContext - - Specify token type names where duplicate strings are ignored even if they don't - match ignoredStringsRegexp. This allows you to exclude syntactical contexts like - annotations or static initializers from the check. - - - subset of tokens - TokenTypes - - - ANNOTATION - + Specify token type names where duplicate strings are ignored even if they don't match ignoredStringsRegexp. This allows you to exclude syntactical contexts like annotations or static initializers from the check. + subset of tokens TokenTypes + ANNOTATION 4.4 ignoreStringsRegexp - - Specify RegExp for ignored strings (with quotation marks). - + Specify RegExp for ignored strings (with quotation marks). Pattern "^""$" 4.0 diff --git a/src/xdocs/checks/coding/multiplestringliterals.xml.template b/src/xdocs/checks/coding/multiplestringliterals.xml.template index 8af96584f36..ac10b55d62b 100644 --- a/src/xdocs/checks/coding/multiplestringliterals.xml.template +++ b/src/xdocs/checks/coding/multiplestringliterals.xml.template @@ -22,50 +22,10 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namedescriptiontypedefault valuesince
allowedDuplicates - Specify the maximum number of occurrences to allow without generating a - warning. - int13.5
ignoreOccurrenceContext - Specify token type names where duplicate strings are ignored even if they don't - match ignoredStringsRegexp. This allows you to exclude syntactical contexts like - annotations or static initializers from the check. - - subset of tokens - TokenTypes - - ANNOTATION - 4.4
ignoreStringsRegexp - Specify RegExp for ignored strings (with quotation marks). - Pattern"^""$"4.0
+ + +