Skip to content

Commit d7a52e3

Browse files
Edit comments and release notes added in #3084
1 parent 16de26f commit d7a52e3

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

documentation/src/docs/asciidoc/release-notes/release-notes-5.10.0-M1.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ repository on GitHub.
2626

2727
==== New Features and Improvements
2828

29-
* All utility methods from `ReflectionSupport` now have counterparts returning `Stream` instead of `List`
29+
* All utility methods from `ReflectionSupport` now have counterparts returning `Stream`
30+
instead of `List`.
3031

3132
[[release-notes-5.10.0-M1-junit-jupiter]]
3233
=== JUnit Jupiter

junit-platform-commons/src/main/java/org/junit/platform/commons/support/ReflectionSupport.java

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public static List<Class<?>> findAllClassesInClasspathRoot(URI root, Predicate<C
130130
* @return a stream of all such classes found; never {@code null}
131131
* but potentially empty
132132
* @since 1.10
133-
* @see #findAllClassesInPackage(String, Predicate, Predicate)
134-
* @see #findAllClassesInModule(String, Predicate, Predicate)
133+
* @see #streamAllClassesInPackage(String, Predicate, Predicate)
134+
* @see #streamAllClassesInModule(String, Predicate, Predicate)
135135
*/
136136
@API(status = MAINTAINED, since = "1.10")
137137
public static Stream<Class<?>> streamAllClassesInClasspathRoot(URI root, Predicate<Class<?>> classFilter,
@@ -180,8 +180,8 @@ public static List<Class<?>> findAllClassesInPackage(String basePackageName, Pre
180180
* @return a stream of all such classes found; never {@code null}
181181
* but potentially empty
182182
* @since 1.10
183-
* @see #findAllClassesInClasspathRoot(URI, Predicate, Predicate)
184-
* @see #findAllClassesInModule(String, Predicate, Predicate)
183+
* @see #streamAllClassesInClasspathRoot(URI, Predicate, Predicate)
184+
* @see #streamAllClassesInModule(String, Predicate, Predicate)
185185
*/
186186
@API(status = MAINTAINED, since = "1.10")
187187
public static Stream<Class<?>> streamAllClassesInPackage(String basePackageName, Predicate<Class<?>> classFilter,
@@ -229,8 +229,8 @@ public static List<Class<?>> findAllClassesInModule(String moduleName, Predicate
229229
* @return a stream of all such classes found; never {@code null}
230230
* but potentially empty
231231
* @since 1.10
232-
* @see #findAllClassesInClasspathRoot(URI, Predicate, Predicate)
233-
* @see #findAllClassesInPackage(String, Predicate, Predicate)
232+
* @see #streamAllClassesInClasspathRoot(URI, Predicate, Predicate)
233+
* @see #streamAllClassesInPackage(String, Predicate, Predicate)
234234
*/
235235
@API(status = MAINTAINED, since = "1.10")
236236
public static Stream<Class<?>> streamAllClassesInModule(String moduleName, Predicate<Class<?>> classFilter,
@@ -322,7 +322,9 @@ public static List<Field> findFields(Class<?> clazz, Predicate<Field> predicate,
322322
@API(status = MAINTAINED, since = "1.10")
323323
public static Stream<Field> streamFields(Class<?> clazz, Predicate<Field> predicate,
324324
HierarchyTraversalMode traversalMode) {
325+
325326
Preconditions.notNull(traversalMode, "HierarchyTraversalMode must not be null");
327+
326328
return ReflectionUtils.streamFields(clazz, predicate,
327329
ReflectionUtils.HierarchyTraversalMode.valueOf(traversalMode.name()));
328330
}
@@ -390,7 +392,7 @@ public static Optional<Method> findMethod(Class<?> clazz, String methodName, Cla
390392
* <p>The results will not contain instance methods that are <em>overridden</em>
391393
* or {@code static} methods that are <em>hidden</em>.
392394
*
393-
* <p>If you're are looking for methods annotated with a certain annotation
395+
* <p>If you are looking for methods annotated with a certain annotation
394396
* type, consider using
395397
* {@link AnnotationSupport#findAnnotatedMethods(Class, Class, HierarchyTraversalMode)}.
396398
*
@@ -416,16 +418,16 @@ public static List<Method> findMethods(Class<?> clazz, Predicate<Method> predica
416418
* <p>The results will not contain instance methods that are <em>overridden</em>
417419
* or {@code static} methods that are <em>hidden</em>.
418420
*
419-
* <p>If you're are looking for methods annotated with a certain annotation
421+
* <p>If you are looking for methods annotated with a certain annotation
420422
* type, consider using
421423
* {@link AnnotationSupport#findAnnotatedMethods(Class, Class, HierarchyTraversalMode)}.
422424
*
423425
* @param clazz the class or interface in which to find the methods; never {@code null}
424426
* @param predicate the method filter; never {@code null}
425427
* @param traversalMode the hierarchy traversal mode; never {@code null}
426428
* @return a stream of all such methods found; never {@code null}
427-
* @since 1.10
428429
* but potentially empty
430+
* @since 1.10
429431
*/
430432
@API(status = MAINTAINED, since = "1.10")
431433
public static Stream<Method> streamMethods(Class<?> clazz, Predicate<Method> predicate,

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,6 @@ public static List<Class<?>> findNestedClasses(Class<?> clazz, Predicate<Class<?
11001100

11011101
/**
11021102
* since 1.10
1103-
* @see org.junit.platform.commons.support.ReflectionSupport#findNestedClasses(Class, Predicate)
11041103
* @see org.junit.platform.commons.support.ReflectionSupport#streamNestedClasses(Class, Predicate)
11051104
*/
11061105
public static Stream<Class<?>> streamNestedClasses(Class<?> clazz, Predicate<Class<?>> predicate) {
@@ -1236,7 +1235,6 @@ public static List<Constructor<?>> findConstructors(Class<?> clazz, Predicate<Co
12361235

12371236
/**
12381237
* @see org.junit.platform.commons.support.ReflectionSupport#findFields(Class, Predicate, org.junit.platform.commons.support.HierarchyTraversalMode)
1239-
* @see org.junit.platform.commons.support.ReflectionSupport#streamFields(Class, Predicate, org.junit.platform.commons.support.HierarchyTraversalMode)
12401238
*/
12411239
public static List<Field> findFields(Class<?> clazz, Predicate<Field> predicate,
12421240
HierarchyTraversalMode traversalMode) {
@@ -1470,7 +1468,6 @@ public static List<Method> findMethods(Class<?> clazz, Predicate<Method> predica
14701468

14711469
/**
14721470
* @see org.junit.platform.commons.support.ReflectionSupport#findMethods(Class, Predicate, org.junit.platform.commons.support.HierarchyTraversalMode)
1473-
* @see org.junit.platform.commons.support.ReflectionSupport#streamMethods(Class, Predicate, org.junit.platform.commons.support.HierarchyTraversalMode)
14741471
*/
14751472
public static List<Method> findMethods(Class<?> clazz, Predicate<Method> predicate,
14761473
HierarchyTraversalMode traversalMode) {

0 commit comments

Comments
 (0)