@@ -443,7 +443,8 @@ public static List<Field> findAnnotatedFields(Class<?> clazz, Class<? extends An
443443 * @see ReflectionSupport#tryToReadFieldValue(Field, Object)
444444 */
445445 @ API (status = MAINTAINED , since = "1.4" )
446- public static List <Object > findAnnotatedFieldValues (Object instance , Class <? extends Annotation > annotationType ) {
446+ public static List <@ Nullable Object > findAnnotatedFieldValues (Object instance ,
447+ Class <? extends Annotation > annotationType ) {
447448 Preconditions .notNull (instance , "instance must not be null" );
448449
449450 List <Field > fields = findAnnotatedFields (instance .getClass (), annotationType , ModifierSupport ::isNotStatic ,
@@ -475,7 +476,8 @@ public static List<Object> findAnnotatedFieldValues(Object instance, Class<? ext
475476 * @see ReflectionSupport#tryToReadFieldValue(Field, Object)
476477 */
477478 @ API (status = MAINTAINED , since = "1.4" )
478- public static List <Object > findAnnotatedFieldValues (Class <?> clazz , Class <? extends Annotation > annotationType ) {
479+ public static List <@ Nullable Object > findAnnotatedFieldValues (Class <?> clazz ,
480+ Class <? extends Annotation > annotationType ) {
479481
480482 List <Field > fields = findAnnotatedFields (clazz , annotationType , ModifierSupport ::isStatic ,
481483 HierarchyTraversalMode .TOP_DOWN );
@@ -510,8 +512,8 @@ public static List<Object> findAnnotatedFieldValues(Class<?> clazz, Class<? exte
510512 */
511513 @ SuppressWarnings ("unchecked" )
512514 @ API (status = MAINTAINED , since = "1.4" )
513- public static <T > List <T > findAnnotatedFieldValues (Object instance , Class <? extends Annotation > annotationType ,
514- Class <T > fieldType ) {
515+ public static <T extends @ Nullable Object > List <T > findAnnotatedFieldValues (Object instance ,
516+ Class <? extends Annotation > annotationType , Class < T > fieldType ) {
515517
516518 Preconditions .notNull (instance , "instance must not be null" );
517519 Preconditions .notNull (fieldType , "fieldType must not be null" );
@@ -552,8 +554,8 @@ public static <T> List<T> findAnnotatedFieldValues(Object instance, Class<? exte
552554 */
553555 @ SuppressWarnings ("unchecked" )
554556 @ API (status = MAINTAINED , since = "1.4" )
555- public static <T > List <T > findAnnotatedFieldValues (Class <?> clazz , Class <? extends Annotation > annotationType ,
556- Class <T > fieldType ) {
557+ public static <T extends @ Nullable Object > List <T > findAnnotatedFieldValues (Class <?> clazz ,
558+ Class <? extends Annotation > annotationType , Class < T > fieldType ) {
557559
558560 Preconditions .notNull (fieldType , "fieldType must not be null" );
559561
0 commit comments