commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LOX" <dimi...@blue-edge.bg>
Subject RE: [PATCH][LANG] StringUtils.trimNull(String)
Date Thu, 23 Jan 2003 07:39:44 GMT
+1 for converting null -> ""

> -----Original Message-----
> From: Ola Berg [mailto:ola.berg@ports.se] 
> Sent: Thursday, January 23, 2003 9:29 AM
> To: commons-dev@jakarta.apache.org
> 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:commons-dev-unsubscribe@jakarta.apache.org>
> For 
> additional commands, e-mail: 
> <mailto:commons-dev-help@jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message