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

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

Github user coveralls commented on the issue:

    https://github.com/apache/commons-lang/pull/342
  
    
    [![Coverage 
Status](https://coveralls.io/builds/18531577/badge)](https://coveralls.io/builds/18531577)
    
    Coverage increased (+0.01%) to 95.26% when pulling 
**2a11642511a3c69bac5aa1abd83d3219871395e3 on nictas:master** into 
**c3de2d69ce9ad778a0bc22971cb8ff36dd0ee062 on apache:master**.



> Add isEmpty method to ObjectUtils
> ---------------------------------
>
>                 Key: LANG-1411
>                 URL: https://issues.apache.org/jira/browse/LANG-1411
>             Project: Commons Lang
>          Issue Type: New Feature
>            Reporter: Alexander Tsvetkov
>            Priority: Major
>
> In Spring's 
> [org.springframework.util.ObjectUtils|https://github.com/spring-projects/spring-framework/blob/master/spring-core/src/main/java/org/springframework/util/ObjectUtils.java]
>  there's a null-safe [isEmpty 
> method|https://github.com/spring-projects/spring-framework/blob/04141dee65ff5e078e2a9137ff7052351f6ab66c/spring-core/src/main/java/org/springframework/util/ObjectUtils.java#L134]
>  that checks whether an object is empty based on its type. If the object is a 
> string it calls String.isEmpty, if it's a collection it calls 
> Collection.isEmpty, etc. I think a similar method would be a really nice 
> addition to org.apache.commons.lang3.ObjectUtils, as it would allow people 
> like me to use it without adding a dependency to Spring or re-implementing 
> the method in our code.



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

Reply via email to