Support wrapper class in BooleanGetMethodName rule (#5253)\n \n - Updated XPath rule to include both primitive and wrapper class:\n (PrimitiveType[@Kind = 'boolean'] or ClassType[pmd-java:typeIs('java.lang.Boolean')])\n - Added test cases to ensure that methods returning are also flagged correctly.\n - Ensured the rule enforces consistent method naming for both primitive and wrapper types.

This commit is contained in:
Aryant Tripathi 2024-10-11 22:34:07 +05:30
parent ed6312e3ba
commit 9077c6a71f

View File

@ -86,7 +86,7 @@ public class Foo {
</test-code>
<test-code>
<description>Good name</description>
<description>Good name with boxed Boolean (#5253)</description>
<expected-problems>0</expected-problems>
<code><![CDATA[
public class Foo {