From 686c6de76e4cceb75ec22504679b77e2140a3811 Mon Sep 17 00:00:00 2001 From: Manu Sridharan Date: Thu, 26 Mar 2026 15:44:12 -0700 Subject: [PATCH] Address nullness warning from future version of NullAway Signed-off-by: Manu Sridharan --- .../springframework/core/annotation/AnnotatedElementUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java b/spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java index b183193918a7..2d1d39b6ee27 100644 --- a/spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java +++ b/spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java @@ -823,7 +823,7 @@ private static MergedAnnotations findRepeatableAnnotations(AnnotatedElement elem return MergedAnnotations.from(element, SearchStrategy.TYPE_HIERARCHY, repeatableContainers); } - private static @Nullable MultiValueMap nullIfEmpty(MultiValueMap map) { + private static @Nullable MultiValueMap nullIfEmpty(MultiValueMap map) { return (map.isEmpty() ? null : map); }