Affects PMD Version:6.42.0
Rule:FinalFieldCouldBeStatic
Please provide the rule name and a link to the rule documentation:
https://pmd.github.io/latest/pmd_rules_java_design.html#finalfieldcouldbestatic
Description:
Hi, I found a false negative about the rule FinalFieldCouldBeStatic. Please read the example below. PMD should have reported a warning in this line, but it doesn't. I think this is caused by the ignorance of parenthesized literal. Thanks for your consideration.
Code Sample demonstrating the issue:
public final int BAR = (42);
Expected outcome:
PMD should report a violation at line 1, but doesn't. This is a false-negative.
Running PMD through: [Maven]
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