commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <skitch...@apache.org>
Subject Re: svn commit: r384400 - /jakarta/commons/proper/logging/contrib/simon/jcl2/core/java/org/apache/commons/logging/Utils.java
Date Thu, 09 Mar 2006 02:59:52 GMT
On Wed, 2006-03-08 at 21:32 -0500, Rahul Akolkar wrote:
> >             s.trim();
> > -            if (!s.startsWith("#")) {
> > +            if ((s.length() > 0) && !s.startsWith("#")) {
> >                 return s;
> >             }
> >         }
> >
> <snip/>
> 
> Ofcourse, Strings being immutable, you probably mean:
> 
> s = s.trim();

Doh! Thanks Rahul.



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


Mime
View raw message