@@ -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 ,
0 commit comments