You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Partha-SUST16 (via GitHub)" <gi...@apache.org> on 2026/03/28 18:40:29 UTC
[PR] [LANG-1820] updated the javadoc to reflect the actual behaviour of ObjectUtils.anyNull(Object) method [commons-lang]
Partha-SUST16 opened a new pull request, #1621:
URL: https://github.com/apache/commons-lang/pull/1621
Fixed the javadoc described in the issue [LANG_1820](https://issues.apache.org/jira/browse/LANG-1820)
The Javadoc for `ObjectUtils.anyNull(Object...)` incorrectly `@param` stated that `true should be returned when the array is null or empty`. However, the current implementation delegates to `!allNotNull(values)`, and `allNotNull()` returns `true `for empty arrays, causing `anyNull()` to return false for empty arrays.
There already exists a test that verifies this behaviour located in `org.apache.commons.lang3.ObjectUtilsTest.testAnyNull` that `anyNull` returns false for empty array.
So updated the javadoc to reflect this behaviour.
--
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-1820] updated the javadoc to reflect the actual behaviour of ObjectUtils.anyNull(Object) method [commons-lang]
Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory merged PR #1621:
URL: https://github.com/apache/commons-lang/pull/1621
--
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