mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-25 03:37:15 +00:00
Use Objects.requireNonNull() directly
This commit is contained in:
parent
54e26e04fa
commit
b01d56ddea
@ -28,7 +28,6 @@
|
||||
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 static int truncatedCompareTo(final Date date1, final Date date2, final i
|
||||
* @throws NullPointerException if {@code date == null}
|
||||
*/
|
||||
private static void validateDateNotNull(final Date date) {
|
||||
Validate.notNull(date, "date");
|
||||
Objects.requireNonNull(date, "date");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user