Skip to content

Commit e2044de

Browse files
committed
Polish Javadoc for ReflectionUtils.isNestedClassPresent()
This commit reuses the text I wrote for ReflectionSupport.findNestedClasses().
1 parent 2eaf488 commit e2044de

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

junit-platform-commons/src/main/java/org/junit/platform/commons/util/ReflectionUtils.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,12 @@ public static List<Class<?>> findNestedClasses(Class<?> clazz, Predicate<Class<?
11321132
* <p>This method does <strong>not</strong> search for nested classes
11331133
* recursively.
11341134
*
1135+
* <p>This method detects cycles in <em>inner</em> class hierarchies &mdash;
1136+
* from the supplied class up to the outermost enclosing class &mdash; and
1137+
* throws a {@link JUnitException} if such a cycle is detected. Cycles within
1138+
* inner class hierarchies <em>below</em> the supplied class are not detected
1139+
* by this method.
1140+
*
11351141
* @param clazz the class to be searched; never {@code null}
11361142
* @param predicate the predicate against which the list of nested classes is
11371143
* checked; never {@code null}

0 commit comments

Comments
 (0)