Use Objects.requireNonNull() directly

This commit is contained in:
Gary Gregory 2022-11-04 16:19:43 -04:00
parent 54e26e04fa
commit b01d56ddea
1 changed files with 1 additions and 2 deletions

View File

@ -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");
}
/**