DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13367>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13367

StringUtil enhancement





------- Additional Comments From [EMAIL PROTECTED]  2003-01-20 16:20 -------
> The first request is available, trimNull is the same as StringUtils.trim. 
That's not quite right. This would be the desired functionality of trimNull:

StringUtils.trimNull("abc") = "abc"
StringUtils.trimNull("    abc    ") = "abc"
StringUtils.trimNull("     ") = null
StringUtils.trimNull("") = null
StringUtils.trimNull(null) = null

trim works different, AFAIK:

StringUtils.trim("abc") = "abc"
StringUtils.trim("    abc   ") = "abc"
StringUtils.trim("    ") = ""
StringUtils.trim("") = ""
StringUtils.trim(null) = null

It think it should be considered...at least it is useful to me too.

Leonardo

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to