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-781) Null-Check to variable Object parameters - ObjectUtils.isAnyNull
Date Tue, 17 May 2016 21:30:13 GMT

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

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

Github user garydgregory commented on the pull request:

    https://github.com/apache/commons-lang/pull/108#issuecomment-219860202
  
    There is a discussion going on right now on the dev mailing list about for-each vs. for.
Let's see how that plays out. See https://commons.apache.org/mail-lists.html


> Null-Check to variable Object parameters - ObjectUtils.isAnyNull
> ----------------------------------------------------------------
>
>                 Key: LANG-781
>                 URL: https://issues.apache.org/jira/browse/LANG-781
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>    Affects Versions: 3.1
>            Reporter: Sandro Lehmann
>            Priority: Minor
>              Labels: patch
>             Fix For: Discussion
>
>         Attachments: ObjectUtils.java.patch, ObjectUtilsTest.java.patch
>
>
> Sometimes it would be very comfortable, to test a few objects to null. Instead of writing
if(obj1==null || obj2==null || ...), using a method like isAnyNull(obj1, obj2, ...) would
be much better.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message