mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-27 01:19:02 +00:00
Refine StringUtils#splitArrayElementsIntoProperties nullability
Closes gh-35595
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user