Skip to content

Commit 9b2f986

Browse files
committed
Javadoc
1 parent 99859f3 commit 9b2f986

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public final class DoubleRange extends NumberRange<Double> {
3838
* </p>
3939
*
4040
* <p>
41-
* The arguments may be passed in the order (min,max) or (max,min). The getMinimum and getMaximum methods will return the correct values.
41+
* The arguments may be passed in the order (min, max) or (max,min). The getMinimum and getMaximum methods will return the correct values.
4242
* </p>
4343
*
4444
* @param fromInclusive the first value that defines the edge of the range, inclusive.
@@ -57,7 +57,7 @@ public static DoubleRange of(final double fromInclusive, final double toInclusiv
5757
* </p>
5858
*
5959
* <p>
60-
* The arguments may be passed in the order (min,max) or (max,min). The getMinimum and getMaximum methods will return the correct values.
60+
* The arguments may be passed in the order (min, max) or (max,min). The getMinimum and getMaximum methods will return the correct values.
6161
* </p>
6262
*
6363
* @param fromInclusive the first value that defines the edge of the range, inclusive.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public final class IntegerRange extends NumberRange<Integer> {
4040
* </p>
4141
*
4242
* <p>
43-
* The arguments may be passed in the order (min,max) or (max,min). The getMinimum and getMaximum methods will return the correct values.
43+
* The arguments may be passed in the order (min, max) or (max,min). The getMinimum and getMaximum methods will return the correct values.
4444
* </p>
4545
*
4646
* @param fromInclusive the first value that defines the edge of the range, inclusive.
@@ -59,7 +59,7 @@ public static IntegerRange of(final int fromInclusive, final int toInclusive) {
5959
* </p>
6060
*
6161
* <p>
62-
* The arguments may be passed in the order (min,max) or (max,min). The getMinimum and getMaximum methods will return the correct values.
62+
* The arguments may be passed in the order (min, max) or (max,min). The getMinimum and getMaximum methods will return the correct values.
6363
* </p>
6464
*
6565
* @param fromInclusive the first value that defines the edge of the range, inclusive.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public final class LongRange extends NumberRange<Long> {
4040
* </p>
4141
*
4242
* <p>
43-
* The arguments may be passed in the order (min,max) or (max,min). The getMinimum and getMaximum methods will return the correct values.
43+
* The arguments may be passed in the order (min, max) or (max,min). The getMinimum and getMaximum methods will return the correct values.
4444
* </p>
4545
*
4646
* @param fromInclusive the first value that defines the edge of the range, inclusive.
@@ -59,7 +59,7 @@ public static LongRange of(final long fromInclusive, final long toInclusive) {
5959
* </p>
6060
*
6161
* <p>
62-
* The arguments may be passed in the order (min,max) or (max,min). The getMinimum and getMaximum methods will return the correct values.
62+
* The arguments may be passed in the order (min, max) or (max,min). The getMinimum and getMaximum methods will return the correct values.
6363
* </p>
6464
*
6565
* @param fromInclusive the first value that defines the edge of the range, inclusive.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,8 @@ public static String hashCodeHex(final Object object) {
740740
* ObjectUtils.hashCodeMulti() = 1
741741
* ObjectUtils.hashCodeMulti((Object[]) null) = 1
742742
* ObjectUtils.hashCodeMulti(a) = 31 + a.hashCode()
743-
* ObjectUtils.hashCodeMulti(a,b) = (31 + a.hashCode()) * 31 + b.hashCode()
744-
* ObjectUtils.hashCodeMulti(a,b,c) = ((31 + a.hashCode()) * 31 + b.hashCode()) * 31 + c.hashCode()
743+
* ObjectUtils.hashCodeMulti(a, b) = (31 + a.hashCode()) * 31 + b.hashCode()
744+
* ObjectUtils.hashCodeMulti(a, b, c) = ((31 + a.hashCode()) * 31 + b.hashCode()) * 31 + c.hashCode()
745745
* </pre>
746746
*
747747
* @param objects the objects to obtain the hash code of, may be {@code null}.

src/test/java/org/apache/commons/lang3/CharRangeTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,12 @@ void testHashCodeLang1802() {
342342
assertNotEquals(normal.hashCode(), negated.hashCode(), "Negated and normal ranges should have different hash codes");
343343
// Test that ranges with different start/end produce different hash codes
344344
assertNotEquals(range1.hashCode(), range2.hashCode(), "is('a') vs is('b')");
345-
assertNotEquals(range1.hashCode(), range3.hashCode(), "is('a') vs isIn('a','z')");
346-
assertNotEquals(range3.hashCode(), range4.hashCode(), "isIn('a','z') vs isIn('b','z')");
345+
assertNotEquals(range1.hashCode(), range3.hashCode(), "is('a') vs isIn('a', 'z')");
346+
assertNotEquals(range3.hashCode(), range4.hashCode(), "isIn('a', 'z') vs isIn('b', 'z')");
347347
assertNotEquals(range1.hashCode(), range5.hashCode(), "is('a') vs isNot('a')");
348-
assertNotEquals(range3.hashCode(), range6.hashCode(), "isIn('a','z') vs isNotIn('a','z')");
349-
assertNotEquals(range6.hashCode(), range7.hashCode(), "isNotIn('a','z') vs isNotIn('b','z')");
350-
assertNotEquals(range8.hashCode(), range9.hashCode(), "isIn(1,2) vs isNotIn(1,2)");
348+
assertNotEquals(range3.hashCode(), range6.hashCode(), "isIn('a', 'z') vs isNotIn('a', 'z')");
349+
assertNotEquals(range6.hashCode(), range7.hashCode(), "isNotIn('a', 'z') vs isNotIn('b', 'z')");
350+
assertNotEquals(range8.hashCode(), range9.hashCode(), "isIn(1, 2) vs isNotIn(1, 2)");
351351
// Test that equal ranges have equal hash codes
352352
final CharRange sameAsRange1 = CharRange.is('a');
353353
assertEquals(range1, sameAsRange1, "Equal ranges should be equal");

0 commit comments

Comments
 (0)