You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "IcoreE (via GitHub)" <gi...@apache.org> on 2025/12/16 15:36:23 UTC
[PR] [LANG-1803] Fix incorrect method invocation and javadoc reference in ObjectUtilsTest and RandomStringUtils [commons-lang]
IcoreE opened a new pull request, #1528:
URL: https://github.com/apache/commons-lang/pull/1528
Two incorrect references need to be fixed in the codebase:
**1. Wrong method call in ObjectUtilsTest#testConstMethods**
In the test method ObjectUtilsTest#testConstMethods, the assertion for validating IllegalArgumentException is incorrectly invoking ObjectUtils.CONST_BYTE(32768) instead of ObjectUtils.CONST_SHORT(32768).
<img width="692" height="105" alt="image" src="https://github.com/user-attachments/assets/7188248c-0de4-48fc-9196-7c16977a1f01" />
**2. Incorrect javadoc reference in RandomStringUtils#randomPrint**
The javadoc of the deprecated methodsĀ contain an incorrect link to {@link #randomPrint
- RandomStringUtils#randomPrint(final int count)
- RandomStringUtils#randomPrint(final int minLengthInclusive, final int maxLengthExclusive)
<img width="692" height="195" alt="image" src="https://github.com/user-attachments/assets/2ca68751-48f4-4cfb-9f6e-d024ca728dbd" />
<img width="692" height="190" alt="image" src="https://github.com/user-attachments/assets/6ece818a-14c2-46d0-a562-2c51436729c5" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [LANG-1803] Fix incorrect method invocation and javadoc reference in ObjectUtilsTest and RandomStringUtils [commons-lang]
Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory merged PR #1528:
URL: https://github.com/apache/commons-lang/pull/1528
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org