Skip to content

Commit

Permalink
Refine null-safety in the spring-core module
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Dec 26, 2024
1 parent c245e20 commit 4747ab6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public static void doesNotContain(@Nullable String textToSearch, String substrin
* @throws IllegalArgumentException if the object array is {@code null} or contains no elements
*/
@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)) {
throw new IllegalArgumentException(message);
}
Expand Down

0 comments on commit 4747ab6

Please sign in to comment.