This is an automated email from the ASF dual-hosted git repository. sjaranowski pushed a commit to branch MSHARED-1401-hidden-field in repository https://gitbox.apache.org/repos/asf/maven-shared-resources.git
commit 8258d3a729df9c80bc3be0309531a80cf2802029 Author: Slawomir Jaranowski <[email protected]> AuthorDate: Sun Jun 2 11:11:41 2024 +0200 [MSHARED-1401] Checkstyle add setterCanReturnItsClass for HiddenField --- src/main/resources/config/maven_checks.xml | 1 + src/main/resources/config/maven_checks_nocodestyle.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/resources/config/maven_checks.xml b/src/main/resources/config/maven_checks.xml index 240f595..d8f25f9 100644 --- a/src/main/resources/config/maven_checks.xml +++ b/src/main/resources/config/maven_checks.xml @@ -169,6 +169,7 @@ under the License. <module name="HiddenField"> <property name="severity" value="warning"/> <property name="ignoreSetter" value="true"/> + <property name="setterCanReturnItsClass" value="true"/> <property name="ignoreConstructorParameter" value="true"/> </module> <module name="IllegalInstantiation"/> diff --git a/src/main/resources/config/maven_checks_nocodestyle.xml b/src/main/resources/config/maven_checks_nocodestyle.xml index 70e68e8..70c3d56 100644 --- a/src/main/resources/config/maven_checks_nocodestyle.xml +++ b/src/main/resources/config/maven_checks_nocodestyle.xml @@ -112,6 +112,7 @@ under the License. <module name="HiddenField"> <property name="severity" value="warning"/> <property name="ignoreSetter" value="true"/> + <property name="setterCanReturnItsClass" value="true"/> <property name="ignoreConstructorParameter" value="true"/> </module> <module name="IllegalInstantiation"/>
