From f5a8c321c00d4d8f66d263528169932e02ee7e7d 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 Closes gh-36548 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 b183193918a..2d1d39b6ee2 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 @@ public abstract class AnnotatedElementUtils { 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); }