From 385f25b54ad4750fbdc21c48f07a82fb0488b2c6 Mon Sep 17 00:00:00 2001 From: Ivan Ponomarev Date: Sat, 24 Jan 2026 10:03:13 +0000 Subject: [PATCH] Fix JavaDoc to reflect actual exception type thrown (IllegalArgumentException to NullPointerException) --- src/main/java/org/apache/commons/lang3/DoubleRange.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);