This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f2a1062a Fix Javadoc @throws
6f2a1062a is described below

commit 6f2a1062a9f81ece8b039400b34ad1482a35167a
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jan 24 07:00:26 2026 -0500

    Fix Javadoc @throws
---
 src/main/java/org/apache/commons/lang3/DoubleRange.java  | 4 ++--
 src/main/java/org/apache/commons/lang3/IntegerRange.java | 8 ++++----
 src/main/java/org/apache/commons/lang3/LongRange.java    | 6 +++---
 src/main/java/org/apache/commons/lang3/NumberRange.java  | 6 +++---
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/DoubleRange.java 
b/src/main/java/org/apache/commons/lang3/DoubleRange.java
index ab2fd09bd..060f4116e 100644
--- a/src/main/java/org/apache/commons/lang3/DoubleRange.java
+++ b/src/main/java/org/apache/commons/lang3/DoubleRange.java
@@ -72,8 +72,8 @@ public static DoubleRange of(final Double fromInclusive, 
final Double toInclusiv
     /**
      * Creates an instance.
      *
-     * @param number1 the first element, not null
-     * @param number2 the second element, not null
+     * @param number1 the first element, not null.
+     * @param number2 the second element, not null.
      * @throws NullPointerException when element1 is null.
      * @throws NullPointerException when element2 is null.
      */
diff --git a/src/main/java/org/apache/commons/lang3/IntegerRange.java 
b/src/main/java/org/apache/commons/lang3/IntegerRange.java
index cb1212eef..69dc1a584 100644
--- a/src/main/java/org/apache/commons/lang3/IntegerRange.java
+++ b/src/main/java/org/apache/commons/lang3/IntegerRange.java
@@ -65,7 +65,7 @@ public static IntegerRange of(final int fromInclusive, final 
int toInclusive) {
      * @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 IntegerRange of(final Integer fromInclusive, final Integer 
toInclusive) {
         return new IntegerRange(fromInclusive, toInclusive);
@@ -74,8 +74,8 @@ public static IntegerRange of(final Integer fromInclusive, 
final Integer toInclu
     /**
      * Creates a new instance.
      *
-     * @param number1 the first element, not null
-     * @param number2 the second element, not null
+     * @param number1 the first element, not null.
+     * @param number2 the second element, not null.
      * @throws NullPointerException when element1 is null.
      * @throws NullPointerException when element2 is null.
      */
@@ -112,7 +112,7 @@ public int fit(final int element) {
      * Returns a sequential ordered {@code IntStream} from {@link 
#getMinimum()} (inclusive) to {@link #getMaximum()} (inclusive) by an 
incremental step of
      * {@code 1}.
      *
-     * @return a sequential {@code IntStream} for the range of {@code int} 
elements
+     * @return a sequential {@code IntStream} for the range of {@code int} 
elements.
      * @since 3.18.0
      */
     public IntStream toIntStream() {
diff --git a/src/main/java/org/apache/commons/lang3/LongRange.java 
b/src/main/java/org/apache/commons/lang3/LongRange.java
index db3c079b4..88f3ee535 100644
--- a/src/main/java/org/apache/commons/lang3/LongRange.java
+++ b/src/main/java/org/apache/commons/lang3/LongRange.java
@@ -65,7 +65,7 @@ public static LongRange of(final long fromInclusive, final 
long toInclusive) {
      * @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 LongRange of(final Long fromInclusive, final Long 
toInclusive) {
         return new LongRange(fromInclusive, toInclusive);
@@ -74,8 +74,8 @@ public static LongRange of(final Long fromInclusive, final 
Long toInclusive) {
     /**
      * Creates a new instance.
      *
-     * @param number1 the first element, not null
-     * @param number2 the second element, not null
+     * @param number1 the first element, not null.
+     * @param number2 the second element, not null.
      * @throws NullPointerException when element1 is null.
      * @throws NullPointerException when element2 is null.
      */
diff --git a/src/main/java/org/apache/commons/lang3/NumberRange.java 
b/src/main/java/org/apache/commons/lang3/NumberRange.java
index 6025625cd..908c9c078 100644
--- a/src/main/java/org/apache/commons/lang3/NumberRange.java
+++ b/src/main/java/org/apache/commons/lang3/NumberRange.java
@@ -35,9 +35,9 @@ public class NumberRange<N extends Number> extends Range<N> {
     /**
      * Creates an instance.
      *
-     * @param number1 the first element, not null
-     * @param number2 the second element, not null
-     * @param comp the comparator to be used, null for natural ordering
+     * @param number1 the first element, not null.
+     * @param number2 the second element, not null.
+     * @param comp the comparator to be used, null for natural ordering.
      * @throws NullPointerException when element1 is null.
      * @throws NullPointerException when element2 is null.
      */

Reply via email to