On Thursday 14 June 2001 14:20, you wrote:
> Hi,
>
>  > Could someone with write-acces review and
>  > apply the following patch ?
>
> Why to call String.toLowercase() 4 times?
> I think following is better:
>
>    public boolean accept(File dir, String filename)
>    {
>       String lowercaseFilename = filename.toLowerCase();
>       return
>         lowercaseFilename.endsWith(".jar") ||
>         lowercaseFilename.endsWith(".war") ||
>         lowercaseFilename.endsWith(".ear") ||
>         lowercaseFilename.endsWith(".zip");
>    }
>
>
> Bye,
> Algirdas
>

Fine by me.

Cheers,

 Jesper

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

Reply via email to