[java] CommentDefaultAccessModifier: false positive with TestNG annotations #4268
Labels
a:false-positive
PMD flags a piece of code that is not problematic
Milestone
Affects PMD Version:6.50.0
Rule: CommentDefaultAccessModifier
Description:
In the rule CommentDefaultAccessModifier, I found PMD can raise a wanring for
org.testng.annotations.Test
, but when I usedorg.junit.jupiter.api.Test
, it does not report the warning, hence I think this is a false positive because these two annotations are equal and the behavior should be consistent.Code Sample demonstrating the issue:
Expected outcome:
PMD should not report a violation at line 3. This is a false positive.
Running PMD through: [Maven]
The text was updated successfully, but these errors were encountered: