Refine null-safety in the spring-core module

See gh-34150
This commit is contained in:
Sébastien Deleuze 2024-12-26 14:56:34 +01:00
parent c245e20e3f
commit 4747ab67e6
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ public abstract class Assert {
* @throws IllegalArgumentException if the object array is {@code null} or contains no elements * @throws IllegalArgumentException if the object array is {@code null} or contains no elements
*/ */
@Contract("null, _ -> fail") @Contract("null, _ -> fail")
public static void notEmpty(Object @Nullable [] array, String message) { public static void notEmpty(@Nullable Object @Nullable [] array, String message) {
if (ObjectUtils.isEmpty(array)) { if (ObjectUtils.isEmpty(array)) {
throw new IllegalArgumentException(message); throw new IllegalArgumentException(message);
} }