You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "木易什么来着 (Jira)" <ji...@apache.org> on 2019/11/18 07:52:00 UTC

[jira] [Created] (COLLECTIONS-736) CollectionUtils containsAny Improvement

木易什么来着 created COLLECTIONS-736:
----------------------------------

             Summary: CollectionUtils containsAny Improvement
                 Key: COLLECTIONS-736
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-736
             Project: Commons Collections
          Issue Type: Improvement
          Components: Collection
    Affects Versions: 4.4
            Reporter: 木易什么来着


I think it's better to judge null in the code rather than let the user pass non null parameters.

 

For example, add such a piece of code:
{code:java}
//代码占位符
{code}
if (isEmpty(coll1) || isEmpty(coll2)) \{ return false; }

 

It might be better in this way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)