@@ -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 () {
0 commit comments