Skip to content

Commit 4747ab6

Browse files
committed
Refine null-safety in the spring-core module
See gh-34150
1 parent c245e20 commit 4747ab6

File tree

1 file changed

+1
-1
lines changed
  • spring-core/src/main/java/org/springframework/util

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public static void doesNotContain(@Nullable String textToSearch, String substrin
319319
* @throws IllegalArgumentException if the object array is {@code null} or contains no elements
320320
*/
321321
@Contract("null, _ -> fail")
322-
public static void notEmpty(Object @Nullable [] array, String message) {
322+
public static void notEmpty(@Nullable Object @Nullable [] array, String message) {
323323
if (ObjectUtils.isEmpty(array)) {
324324
throw new IllegalArgumentException(message);
325325
}

0 commit comments

Comments
 (0)