Hi,

I love such discussions so much, that I can't keep from putting my
2 cents :-)
I'd write this condition as
   if (query.charAt(0) == ',') {

Oleg

Peter Routtier-Wone wrote:
> Commas aren't case sensitive. You can probably improve performance slightly
> by changing this
>>       if (query.toLowerCase().startsWith(",")) {

> to this

> if (query.startsWith(",")) {

> And I'd be inclined to trim whitespace like this

> if (query.trim().startsWith(",")) {





> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to