Skip to content

Commit 3014a0f

Browse files
authored
Fix incorrect method invocation and javadoc reference in ObjectUtilsTest and RandomStringUtils (#1528)
1 parent 3bd1625 commit 3014a0f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ public static String randomNumeric(final int minLengthInclusive, final int maxLe
600600
* @return the random string.
601601
* @throws IllegalArgumentException if {@code count} < 0.
602602
* @since 3.5
603-
* @deprecated Use {@link #randomPrint(int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
603+
* @deprecated Use {@link #nextPrint(int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
604604
*/
605605
@Deprecated
606606
public static String randomPrint(final int count) {
@@ -618,7 +618,7 @@ public static String randomPrint(final int count) {
618618
* @param maxLengthExclusive the exclusive maximum length of the string to generate.
619619
* @return the random string.
620620
* @since 3.5
621-
* @deprecated Use {@link #randomPrint(int, int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
621+
* @deprecated Use {@link #nextPrint(int, int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
622622
*/
623623
@Deprecated
624624
public static String randomPrint(final int minLengthInclusive, final int maxLengthExclusive) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ void testConstMethods() {
397397
assertIllegalArgumentException(() -> ObjectUtils.CONST_BYTE(128), "CONST_BYTE(128): IllegalArgumentException should have been thrown.");
398398
assertIllegalArgumentException(() -> ObjectUtils.CONST_SHORT(-32769),
399399
"CONST_SHORT(-32769): IllegalArgumentException should have been thrown.");
400-
assertIllegalArgumentException(() -> ObjectUtils.CONST_BYTE(32768),
400+
assertIllegalArgumentException(() -> ObjectUtils.CONST_SHORT(32768),
401401
"CONST_SHORT(32768): IllegalArgumentException should have been thrown.");
402402
}
403403

0 commit comments

Comments
 (0)