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
{{ message }}
[java] JUnitJupiterTestShouldBePackagePrivate: False negative when the only tests are in a @Nested class #6736
Expected outcome: PMD should report a violation at line 4, but doesn't. This is a false-negative.
Diagnosis:TestFrameworksUtil.isJUnit5Class() only checks for test methods, not for nested test classes. For that, we need a JTypeMirror.streamNestedClasses() (similar to JTypeMirror.streamMethods())
changed the title [-][java] JUnitJupiterTestShouldBePackagePrivate: False negative when the only tests are in a @Nested class inside a superclass[/-][+][java] JUnitJupiterTestShouldBePackagePrivate: False negative when the only tests are in a @Nested class[/+]on May 30, 2026
Activity
[doc] Update release notes (pmd#6736)
[doc] Update release notes (pmd#6736)
[-][java] JUnitJupiterTestShouldBePackagePrivate: False negative when the only tests are in a @Nested class inside a superclass[/-][+][java] JUnitJupiterTestShouldBePackagePrivate: False negative when the only tests are in a @Nested class[/+][doc] Update release notes (pmd#6736)
[doc] Update release notes (pmd#6736)
[doc] Update release notes (pmd#6736)
[doc] Update release notes (pmd#6736)
[doc] Update release notes (pmd#6736)
[doc] Update release notes (pmd#6736)
[doc] Update release notes (pmd#6736)
[doc] Update release notes (pmd#6736)
[java] Fix pmd#6736: Add JTypeMirror.streamClasses() (pmd#6738)