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

Robert Scholte commented on LANG-444:
-------------------------------------

You can always use StringUtils.defaultIfEmpty(aString, null). The javadoc 
doesn't give an example when using null as second argument, but that should do 
the trick.

> StringUtils.emptyToNull
> -----------------------
>
>                 Key: LANG-444
>                 URL: https://issues.apache.org/jira/browse/LANG-444
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.4
>            Reporter: Hideyuki Suzumi
>            Priority: Minor
>
> Inversion of StringUtils.defaultString(String).
> StringUtils.emptyToNull(null) = null
> StringUtils.emptyToNull("") = null
> StringUtils.emptyToNull("bat") = "bat"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to