Browse Source

Refine StringUtils#splitArrayElementsIntoProperties nullability

Closes gh-35595
pull/35603/head
Sébastien Deleuze 3 months ago
parent
commit
3819e2dc4c
  1. 3
      spring-core/src/main/java/org/springframework/util/StringUtils.java

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

@ -1139,7 +1139,8 @@ public abstract class StringUtils { @@ -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);
}

Loading…
Cancel
Save