From b01d56ddea7e54d19b615ee689f13e3f83b3bcd7 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 4 Nov 2022 16:19:43 -0400 Subject: [PATCH] Use Objects.requireNonNull() directly --- src/main/java/org/apache/commons/lang3/time/DateUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/time/DateUtils.java b/src/main/java/org/apache/commons/lang3/time/DateUtils.java index d71746596..a7e0e2f91 100644 --- a/src/main/java/org/apache/commons/lang3/time/DateUtils.java +++ b/src/main/java/org/apache/commons/lang3/time/DateUtils.java @@ -28,7 +28,6 @@ import java.util.TimeZone; import java.util.concurrent.TimeUnit; import org.apache.commons.lang3.LocaleUtils; -import org.apache.commons.lang3.Validate; /** * A suite of utilities surrounding the use of the @@ -1717,7 +1716,7 @@ public class DateUtils { * @throws NullPointerException if {@code date == null} */ private static void validateDateNotNull(final Date date) { - Validate.notNull(date, "date"); + Objects.requireNonNull(date, "date"); } /**