Affects PMD Version:6.42.0
Rule:
Please provide the rule name and a link to the rule documentation:
https://pmd.github.io/latest/pmd_rules_java_errorprone.html#avoidfieldnamematchingmethodname
Description:
Hi, I found a false negative about the rule AvoidFieldNameMatchingMethodName. PMD should have reported a warning in line 5. I think this bug is caused by enum class here. Thanks for your consideration.
Code Sample demonstrating the issue:
public class C { enum E { R; int bar; void bar() {} // should report a warning in this line } }
Expected outcome:
PMD should report a violation at line 5, 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