commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1421) Add anyNull(Object ...) to ObjectUtils
Date Tue, 25 Sep 2018 09:21:00 GMT

    [ https://issues.apache.org/jira/browse/LANG-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16627050#comment-16627050
] 

ASF GitHub Bot commented on LANG-1421:
--------------------------------------

Github user sparsick commented on a diff in the pull request:

    https://github.com/apache/commons-lang/pull/357#discussion_r220118024
  
    --- Diff: src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java ---
    @@ -148,11 +153,27 @@ public void testAnyNotNull() {
             assertTrue(ObjectUtils.anyNotNull(null, null, null, null, FOO, BAR));
         }
     
    +    /**
    +     * Tests {@link ObjectUtils#anyNull(Object...)}.
    +     */
    +    @Test
    +    void testAnyNull() {
    +        assertTrue(ObjectUtils.anyNull((Object) null));
    +        assertTrue(ObjectUtils.anyNull(null, null, null));
    +
    +        assertFalse(ObjectUtils.anyNull());
    +        assertFalse(ObjectUtils.anyNull((Object[]) null));
    +        assertFalse(ObjectUtils.anyNull(FOO));
    +        assertFalse(ObjectUtils.anyNull(null, FOO, null));
    --- End diff --
    
    Thank you. You are right. I will create a new commit.


> Add anyNull(Object ...) to ObjectUtils
> --------------------------------------
>
>                 Key: LANG-1421
>                 URL: https://issues.apache.org/jira/browse/LANG-1421
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 3.8
>            Reporter: Sandra Parsick
>            Priority: Minor
>
> We looked for 
> {code:java}
> ObjectUtils.anyNull(Object ...)
> {code}
> We found LANG-781 but when we look in the Pull Request, we found methods like anyNotNull
and allNotNull. 
> We would still like to add anyNull and allNull as opposite of these.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message