From a493bd959d0045341f942ea677c363d3ef7b6cb7 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Tue, 2 Dec 2025 15:32:32 +0100 Subject: [PATCH] Fix nullability in TestContextAnnotationUtils.findAnnotationDescriptor() --- .../test/context/TestContextAnnotationUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java b/spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java index 3ba4d0bbf09..f3a5d9c377d 100644 --- a/spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java +++ b/spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java @@ -219,7 +219,7 @@ public abstract class TestContextAnnotationUtils { * @see #findAnnotationDescriptorForTypes(Class, Class...) */ public static @Nullable AnnotationDescriptor findAnnotationDescriptor( - Class clazz, Class annotationType) { + @Nullable Class clazz, Class annotationType) { Assert.notNull(annotationType, "Annotation type must not be null"); return findAnnotationDescriptor(clazz, annotationType, TestContextAnnotationUtils::searchEnclosingClass,