@@ -130,8 +130,8 @@ public static List<Class<?>> findAllClassesInClasspathRoot(URI root, Predicate<C
130
130
* @return a stream of all such classes found; never {@code null}
131
131
* but potentially empty
132
132
* @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)
135
135
*/
136
136
@ API (status = MAINTAINED , since = "1.10" )
137
137
public static Stream <Class <?>> streamAllClassesInClasspathRoot (URI root , Predicate <Class <?>> classFilter ,
@@ -180,8 +180,8 @@ public static List<Class<?>> findAllClassesInPackage(String basePackageName, Pre
180
180
* @return a stream of all such classes found; never {@code null}
181
181
* but potentially empty
182
182
* @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)
185
185
*/
186
186
@ API (status = MAINTAINED , since = "1.10" )
187
187
public static Stream <Class <?>> streamAllClassesInPackage (String basePackageName , Predicate <Class <?>> classFilter ,
@@ -229,8 +229,8 @@ public static List<Class<?>> findAllClassesInModule(String moduleName, Predicate
229
229
* @return a stream of all such classes found; never {@code null}
230
230
* but potentially empty
231
231
* @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)
234
234
*/
235
235
@ API (status = MAINTAINED , since = "1.10" )
236
236
public static Stream <Class <?>> streamAllClassesInModule (String moduleName , Predicate <Class <?>> classFilter ,
@@ -322,7 +322,9 @@ public static List<Field> findFields(Class<?> clazz, Predicate<Field> predicate,
322
322
@ API (status = MAINTAINED , since = "1.10" )
323
323
public static Stream <Field > streamFields (Class <?> clazz , Predicate <Field > predicate ,
324
324
HierarchyTraversalMode traversalMode ) {
325
+
325
326
Preconditions .notNull (traversalMode , "HierarchyTraversalMode must not be null" );
327
+
326
328
return ReflectionUtils .streamFields (clazz , predicate ,
327
329
ReflectionUtils .HierarchyTraversalMode .valueOf (traversalMode .name ()));
328
330
}
@@ -390,7 +392,7 @@ public static Optional<Method> findMethod(Class<?> clazz, String methodName, Cla
390
392
* <p>The results will not contain instance methods that are <em>overridden</em>
391
393
* or {@code static} methods that are <em>hidden</em>.
392
394
*
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
394
396
* type, consider using
395
397
* {@link AnnotationSupport#findAnnotatedMethods(Class, Class, HierarchyTraversalMode)}.
396
398
*
@@ -416,16 +418,16 @@ public static List<Method> findMethods(Class<?> clazz, Predicate<Method> predica
416
418
* <p>The results will not contain instance methods that are <em>overridden</em>
417
419
* or {@code static} methods that are <em>hidden</em>.
418
420
*
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
420
422
* type, consider using
421
423
* {@link AnnotationSupport#findAnnotatedMethods(Class, Class, HierarchyTraversalMode)}.
422
424
*
423
425
* @param clazz the class or interface in which to find the methods; never {@code null}
424
426
* @param predicate the method filter; never {@code null}
425
427
* @param traversalMode the hierarchy traversal mode; never {@code null}
426
428
* @return a stream of all such methods found; never {@code null}
427
- * @since 1.10
428
429
* but potentially empty
430
+ * @since 1.10
429
431
*/
430
432
@ API (status = MAINTAINED , since = "1.10" )
431
433
public static Stream <Method > streamMethods (Class <?> clazz , Predicate <Method > predicate ,
0 commit comments