diff --git a/src/main/java/org/apache/commons/lang3/DoubleRange.java b/src/main/java/org/apache/commons/lang3/DoubleRange.java index f23f363359d..ab2fd09bd3f 100644 --- a/src/main/java/org/apache/commons/lang3/DoubleRange.java +++ b/src/main/java/org/apache/commons/lang3/DoubleRange.java @@ -63,7 +63,7 @@ public static DoubleRange of(final double fromInclusive, final double toInclusiv * @param fromInclusive the first value that defines the edge of the range, inclusive. * @param toInclusive the second value that defines the edge of the range, inclusive. * @return the range object, not null. - * @throws IllegalArgumentException if either element is null. + * @throws NullPointerException if either element is null. */ public static DoubleRange of(final Double fromInclusive, final Double toInclusive) { return new DoubleRange(fromInclusive, toInclusive);