commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (Commented) (JIRA)" <>
Subject [jira] [Commented] (LANG-781) Null-Check to variable Object parameters - ObjectUtils.isAnyNull
Date Thu, 05 Jan 2012 16:07:40 GMT


Matt Benson commented on LANG-781:

Yes, this is mostly satisfied by {{Validate.noNullElements()}}, however, the short version
of the signature is not set up to handle varargs, presumably because we didn't anticipate
this (ahem) use-case.  I think that we would remain binary compatible if we just add the varargs
even now; do the CLIRR nazis ;) among us agree?
> Null-Check to variable Object parameters - ObjectUtils.isAnyNull
> ----------------------------------------------------------------
>                 Key: LANG-781
>                 URL:
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>    Affects Versions: 3.1
>            Reporter: Sandro Lehmann
>            Priority: Minor
>              Labels: patch
>         Attachments:,
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message