Skip to content

Commit 6f2a106

Browse files
committed
Fix Javadoc @throws
1 parent b076e47 commit 6f2a106

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/main/java/org/apache/commons/lang3/DoubleRange.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public static DoubleRange of(final Double fromInclusive, final Double toInclusiv
7272
/**
7373
* Creates an instance.
7474
*
75-
* @param number1 the first element, not null
76-
* @param number2 the second element, not null
75+
* @param number1 the first element, not null.
76+
* @param number2 the second element, not null.
7777
* @throws NullPointerException when element1 is null.
7878
* @throws NullPointerException when element2 is null.
7979
*/

src/main/java/org/apache/commons/lang3/IntegerRange.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static IntegerRange of(final int fromInclusive, final int toInclusive) {
6565
* @param fromInclusive the first value that defines the edge of the range, inclusive.
6666
* @param toInclusive the second value that defines the edge of the range, inclusive.
6767
* @return the range object, not null.
68-
* @throws IllegalArgumentException if either element is null.
68+
* @throws NullPointerException if either element is null.
6969
*/
7070
public static IntegerRange of(final Integer fromInclusive, final Integer toInclusive) {
7171
return new IntegerRange(fromInclusive, toInclusive);
@@ -74,8 +74,8 @@ public static IntegerRange of(final Integer fromInclusive, final Integer toInclu
7474
/**
7575
* Creates a new instance.
7676
*
77-
* @param number1 the first element, not null
78-
* @param number2 the second element, not null
77+
* @param number1 the first element, not null.
78+
* @param number2 the second element, not null.
7979
* @throws NullPointerException when element1 is null.
8080
* @throws NullPointerException when element2 is null.
8181
*/
@@ -112,7 +112,7 @@ public int fit(final int element) {
112112
* Returns a sequential ordered {@code IntStream} from {@link #getMinimum()} (inclusive) to {@link #getMaximum()} (inclusive) by an incremental step of
113113
* {@code 1}.
114114
*
115-
* @return a sequential {@code IntStream} for the range of {@code int} elements
115+
* @return a sequential {@code IntStream} for the range of {@code int} elements.
116116
* @since 3.18.0
117117
*/
118118
public IntStream toIntStream() {

src/main/java/org/apache/commons/lang3/LongRange.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static LongRange of(final long fromInclusive, final long toInclusive) {
6565
* @param fromInclusive the first value that defines the edge of the range, inclusive.
6666
* @param toInclusive the second value that defines the edge of the range, inclusive.
6767
* @return the range object, not null.
68-
* @throws IllegalArgumentException if either element is null.
68+
* @throws NullPointerException if either element is null.
6969
*/
7070
public static LongRange of(final Long fromInclusive, final Long toInclusive) {
7171
return new LongRange(fromInclusive, toInclusive);
@@ -74,8 +74,8 @@ public static LongRange of(final Long fromInclusive, final Long toInclusive) {
7474
/**
7575
* Creates a new instance.
7676
*
77-
* @param number1 the first element, not null
78-
* @param number2 the second element, not null
77+
* @param number1 the first element, not null.
78+
* @param number2 the second element, not null.
7979
* @throws NullPointerException when element1 is null.
8080
* @throws NullPointerException when element2 is null.
8181
*/

src/main/java/org/apache/commons/lang3/NumberRange.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public class NumberRange<N extends Number> extends Range<N> {
3535
/**
3636
* Creates an instance.
3737
*
38-
* @param number1 the first element, not null
39-
* @param number2 the second element, not null
40-
* @param comp the comparator to be used, null for natural ordering
38+
* @param number1 the first element, not null.
39+
* @param number2 the second element, not null.
40+
* @param comp the comparator to be used, null for natural ordering.
4141
* @throws NullPointerException when element1 is null.
4242
* @throws NullPointerException when element2 is null.
4343
*/

0 commit comments

Comments
 (0)