[java] UncommentedEmptyConstructor FP when constructor annotated with @Autowired #4141
Labels
a:false-positive
PMD flags a piece of code that is not problematic
Milestone
Affects PMD Version:6.50.0
Rule:UncommentedEmptyConstructor
https://pmd.github.io/latest/pmd_rules_java_documentation.html#uncommentedemptyconstructor
Description:
Hi, I think PMD should not report a warning at line 5 when the constructor is annotated with @Autowired, this rule should consider annotation
@Autowired
. Besides, I find a previous issue is related to this problem, and it has been fixed. Thanks.Code Sample demonstrating the issue:
Expected outcome:
PMD reports a violation at line 5, but that's wrong. That's a false positive.
Running PMD through: CLI
The text was updated successfully, but these errors were encountered: