You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oowekyala
changed the title
A false positive about the rule RedundantFieldInitializer
[java] A false positive about the rule RedundantFieldInitializer
May 2, 2023
Affects PMD Version:6.47.0
Rule:RedundantFieldInitializer
Please provide the rule name and a link to the rule documentation:
https://pmd.github.io/pmd-6.47.0/pmd_rules_java_performance.html#redundantfieldinitializer
Description:
In the following code example, I found a FP. Line 3 is not a redundant initializer, but it reports a warning.
Code Sample demonstrating the issue:
Expected outcome:
PMD reports a violation at line 3, but that's wrong. That's a false positive.
Running PMD through: [Maven]
The text was updated successfully, but these errors were encountered: