From: "Conor MacNeill" <[EMAIL PROTECTED]>

> [EMAIL PROTECTED] wrote:
> 
> >   -        if (vPath.equalsIgnoreCase("META-INF/MANIFEST.MF"))  {
> >   +        if ("META-INF/MANIFEST.MF".equalsIgnoreCase(vPath))  {
> 
> Magesh,
> 
> I've never understood why people do this in Java. Makes the code less 
> "readable" IMHO. What is the justification?

"A".equals(b) results only in either true or false.
b.equals("A") may result in true, false or NullPointerException.

> 
> Conor
> 

Cheers,
Magesh

***********************************************
*  When two airplanes almost collide why do   *
*  they call it a near miss?? It sounds like  *
*  a near hit to me!!                         *
***********************************************



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

Reply via email to