commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-444) StringUtils.emptyToNull
Date Wed, 11 Jun 2008 07:16:45 GMT

    [ 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.


Mime
View raw message