This is an automated email from the ASF dual-hosted git repository. sjaranowski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-shared-resources.git
The following commit(s) were added to refs/heads/master by this push: new 24d155c [MSHARED-1401] Checkstyle add setterCanReturnItsClass for HiddenField 24d155c is described below commit 24d155c77a253eeb050d9844f08ef8bab4670262 Author: Slawomir Jaranowski <s.jaranow...@gmail.com> 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 da70c21..7e7ee86 100644 --- a/src/main/resources/config/maven_checks_nocodestyle.xml +++ b/src/main/resources/config/maven_checks_nocodestyle.xml @@ -116,6 +116,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"/>