From 3819e2dc4cb092012353fc89c39f3b9063bc0a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Fri, 10 Oct 2025 11:22:08 +0200 Subject: [PATCH] Refine StringUtils#splitArrayElementsIntoProperties nullability Closes gh-35595 --- .../src/main/java/org/springframework/util/StringUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-core/src/main/java/org/springframework/util/StringUtils.java b/spring-core/src/main/java/org/springframework/util/StringUtils.java index df2e0d8ccbf..84d455a61eb 100644 --- a/spring-core/src/main/java/org/springframework/util/StringUtils.java +++ b/spring-core/src/main/java/org/springframework/util/StringUtils.java @@ -1139,7 +1139,8 @@ public abstract class StringUtils { * @return a {@code Properties} instance representing the array contents, * or {@code null} if the array to process was {@code null} or empty */ - public static @Nullable Properties splitArrayElementsIntoProperties(String[] array, String delimiter) { + @Contract("null, _ -> null") + public static @Nullable Properties splitArrayElementsIntoProperties(String @Nullable [] array, String delimiter) { return splitArrayElementsIntoProperties(array, delimiter, null); }