Branch: refs/heads/main
  Home:   https://github.com/pmd/pmd
  Commit: cabc962e51483b3968354af1bbf51b304ca9d1e1
      https://github.com/pmd/pmd/commit/cabc962e51483b3968354af1bbf51b304ca9d1e1
  Author: Sören Glimm <[email protected]>
  Date:   2026-06-23 (Tue, 23 Jun 2026)

  Changed paths:
    M docs/pages/release_notes.md
    M 
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/internal/TestFrameworksUtil.java
    M 
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/types/ClassTypeImpl.java
    M 
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/types/JIntersectionType.java
    M 
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/types/JTypeMirror.java
    M pmd-java/src/main/java/net/sourceforge/pmd/lang/java/types/JTypeVar.java
    M 
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/types/JWildcardType.java
    A 
pmd-java/src/test/java-resources/net/sourceforge/pmd/lang/java/rule/errorprone/rulesfortests/JUnit5ParentWithNestedTestClass.java
    M 
pmd-java/src/test/java/net/sourceforge/pmd/lang/java/rule/internal/TestFrameworksUtilTest.java
    M 
pmd-java/src/test/kotlin/net/sourceforge/pmd/lang/java/types/ClassTypeImplTest.kt
    M 
pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/bestpractices/xml/JUnitJupiterTestShouldBePackagePrivate.xml

  Log Message:
  -----------
  [java] Fix #6736: Add JTypeMirror.streamClasses() (#6738)

* Add JTypeMirror.streamClasses() and .streamDeclaredClasses()

Implement those methods in ClassTypeImpl, JIntersectionType, JTypeVar and 
JWildcardType.
Implementation mirrors the implementation of .streamMethods() and 
.streamDeclaredMethods().

Use the new methods to have TestFrameworksUtil.isJUnit5Class for the existence 
of @Nested classes.

* [doc] Update release notes (#6736)

* From review: Remove prefilter from stream{,Declared}Classes()

For methods, having a filter reduces the amount of objects created.
This increases performance.
For classes, that's not the case. Let's go for the simple interface.

* Add tests for ClassTypeImpl.streamClasses()

* replace Function.identity() with cast.

* Remove unused imports

* Update docs/pages/release_notes.md

Co-authored-by: Andreas Dangel <[email protected]>

* Update 
pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/bestpractices/xml/JUnitJupiterTestShouldBePackagePrivate.xml

Co-authored-by: Andreas Dangel <[email protected]>

---------

Co-authored-by: Andreas Dangel <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/pmd/pmd/settings/notifications


_______________________________________________
Pmd-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmd-commits

Reply via email to