+1 on null -> "", but not the other way.

On Thursday, January 23, 2003, at 07:39  am, LOX wrote:

+1 for converting null -> ""

-----Original Message-----
From: Ola Berg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 9:29 AM
To: [EMAIL PROTECTED]
Subject: Re: [PATCH][LANG] StringUtils.trimNull(String)



Which is StringUtils.trim. Already there.

Like Dave, I'm not sure I can see converting "" to null as a highly
common thing to do. In fact, I'd expect people to want the reverse
more often [which I suspect Dave might like}, convert any
null passed
in into "".
Leonardo, what's the use case for StringUtils.trimNull( str)?

I, like Hen and Dave, have difficulties seeing one that
occurs often for most people, which would motivate inclusion.

/O


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



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


David Kennedy
[EMAIL PROTECTED]


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

Reply via email to