commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Tsvetkov (JIRA)" <>
Subject [jira] [Created] (LANG-1411) Add isEmpty method to ObjectUtils
Date Wed, 15 Aug 2018 08:42:00 GMT
Alexander Tsvetkov created LANG-1411:

             Summary: Add isEmpty method to ObjectUtils
                 Key: LANG-1411
             Project: Commons Lang
          Issue Type: New Feature
            Reporter: Alexander Tsvetkov

In Spring's [org.springframework.util.ObjectUtils|] there's
a null-safe [isEmpty method|] 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

View raw message