You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sandro Lehmann (Updated) (JIRA)" <ji...@apache.org> on 2011/12/13 11:55:30 UTC
[jira] [Updated] (LANG-781) Null-Check to variable Object
parameters - ObjectUtils.isAnyNull
[ https://issues.apache.org/jira/browse/LANG-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Lehmann updated LANG-781:
--------------------------------
Attachment: ObjectUtils.java.patch
> 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
> Attachments: ObjectUtils.java.patch
>
>
> Sometimes it would be very comfortable, to test a few objects to null. Instead of writing if(obj1==null || obj2==null || ...), if there is a method like isAnyNull(obj1, obj2, ...). It is much more readable.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira