Yes,
Alot faster and you get smaller classes. Since you do something like:
if ( debug )
Log("what ever");
since the debug is final and false, the compiler knows the Log function can
never be called so it just skips it (optimization). It will never even make
it into the class file.
Regards,
Hiram
----- Original Message -----
From: "Tom Cook" <[EMAIL PROTECTED]>
To: "JBoss-Dev" <[EMAIL PROTECTED]>
Sent: Thursday, March 08, 2001 7:37 PM
Subject: Re: [jBoss-Dev] CVS update:
jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc JDBCCommand.java
> On Thu, 8 Mar 2001, jBoss CVS Development wrote:
>
> [snip]
> > Log:
> > add final clause to debug var
>
> Just out of interest - why? To make it faster? If you don't make this
> final then you could potentially change it from the JMX web admin thingy,
> which would be useful in debugging/support...
>
> Tom
> --
> "If you mess with something for long enough it will break." - Schmidt
>
>
>