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
Description:
In the following code example, annotation @Value can add modifiers to the field fo$o, contradicted with default access modifier, so that no need to add a comment before its declaration, and this is a false positive.
Affects PMD Version:6.51.0
Rule: CommentDefaultAccessModifier
Please provide the rule name and a link to the rule documentation:
https://pmd.github.io/latest/pmd_rules_java_codestyle.html#commentdefaultaccessmodifier
Description:
In the following code example, annotation
@Value
can add modifiers to the fieldfo$o
, contradicted with default access modifier, so that no need to add a comment before its declaration, and this is a false positive.Code Sample demonstrating the issue:
Expected outcome:
PMD reports a violation at line 4, but that's wrong. That's a false positive.
Running PMD through: CLI
The text was updated successfully, but these errors were encountered: