A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/5253 below:

False-negatives with `Boolean` wrapper · Issue #5253 · pmd/pmd · GitHub

Is your feature request related to a problem? Please describe.
Methods using Boolean return declaration are not managed by the BooleanGetMethodName rule.

Describe the solution you'd like
Update the rule to consider the Boolean wrapper too.

Describe alternatives you've considered
If this is considered as a BC break, I guess a property enabling the detection for the Boolean type could work.

Additional context

Boolean getFoo() {
    return true;
}
<![CDATA[ //MethodDeclaration [starts-with(@Name, 'get')] [@Arity = 0 or $checkParameterizedMethods = true()] [ PrimitiveType[@Kind = 'boolean'] and @Overridden = false() ] ]]>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4