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 used org.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:
import org.testng.annotations.Test; public class C { @Test void foo() { synchronized (this) {} } }
Expected outcome:
PMD should not report a violation at line 3. This is a false positive.
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