Skip to content

Commit 3819e2d

Browse files
committed
Refine StringUtils#splitArrayElementsIntoProperties nullability
Closes gh-35595
1 parent edc14c2 commit 3819e2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-core/src/main/java/org/springframework/util/StringUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,8 @@ public static String[] removeDuplicateStrings(String[] array) {
11391139
* @return a {@code Properties} instance representing the array contents,
11401140
* or {@code null} if the array to process was {@code null} or empty
11411141
*/
1142-
public static @Nullable Properties splitArrayElementsIntoProperties(String[] array, String delimiter) {
1142+
@Contract("null, _ -> null")
1143+
public static @Nullable Properties splitArrayElementsIntoProperties(String @Nullable [] array, String delimiter) {
11431144
return splitArrayElementsIntoProperties(array, delimiter, null);
11441145
}
11451146

0 commit comments

Comments
 (0)