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 3014a0f2c Fix incorrect method invocation and javadoc reference in 
ObjectUtilsTest and RandomStringUtils (#1528)
3014a0f2c is described below

commit 3014a0f2c9b4f34625995bbbf16aca1ff445b8cf
Author: IcoreE <[email protected]>
AuthorDate: Tue Dec 16 23:46:07 2025 +0800

    Fix incorrect method invocation and javadoc reference in ObjectUtilsTest 
and RandomStringUtils (#1528)
---
 src/main/java/org/apache/commons/lang3/RandomStringUtils.java | 4 ++--
 src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/RandomStringUtils.java 
b/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
index 558fc5242..b29231dee 100644
--- a/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
@@ -600,7 +600,7 @@ public static String randomNumeric(final int 
minLengthInclusive, final int maxLe
      * @return the random string.
      * @throws IllegalArgumentException if {@code count} &lt; 0.
      * @since 3.5
-     * @deprecated Use {@link #randomPrint(int)} from {@link #secure()}, 
{@link #secureStrong()}, or {@link #insecure()}.
+     * @deprecated Use {@link #nextPrint(int)} from {@link #secure()}, {@link 
#secureStrong()}, or {@link #insecure()}.
      */
     @Deprecated
     public static String randomPrint(final int count) {
@@ -618,7 +618,7 @@ public static String randomPrint(final int count) {
      * @param maxLengthExclusive the exclusive maximum length of the string to 
generate.
      * @return the random string.
      * @since 3.5
-     * @deprecated Use {@link #randomPrint(int, int)} from {@link #secure()}, 
{@link #secureStrong()}, or {@link #insecure()}.
+     * @deprecated Use {@link #nextPrint(int, int)} from {@link #secure()}, 
{@link #secureStrong()}, or {@link #insecure()}.
      */
     @Deprecated
     public static String randomPrint(final int minLengthInclusive, final int 
maxLengthExclusive) {
diff --git a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java 
b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java
index 93db20045..51a650217 100644
--- a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java
@@ -397,7 +397,7 @@ void testConstMethods() {
         assertIllegalArgumentException(() -> ObjectUtils.CONST_BYTE(128), 
"CONST_BYTE(128): IllegalArgumentException should have been thrown.");
         assertIllegalArgumentException(() -> ObjectUtils.CONST_SHORT(-32769),
                 "CONST_SHORT(-32769): IllegalArgumentException should have 
been thrown.");
-        assertIllegalArgumentException(() -> ObjectUtils.CONST_BYTE(32768),
+        assertIllegalArgumentException(() -> ObjectUtils.CONST_SHORT(32768),
                 "CONST_SHORT(32768): IllegalArgumentException should have been 
thrown.");
     }
 

Reply via email to