[opencms-dev] Ver6: Article Management Module is out!!!
Robert Petermeier
robert2.0 at gmx.de
Mon Feb 7 16:34:47 CET 2005
Hi Alex!
Alexander Kandzior schrieb:
> Instead of
>
> boolean openInNewWindow = (s != null && s.equalsIgnoreCase("true"))
>
> I recommend writing it like this:
>
> boolean openInNewWindow = Boolean.valueOf(s).booleanValue();
That should yield exactly the same result but creates one more Boolean
object that has to be garbage-collected, so I was assuming my code was
slightly more efficient;-)
Regards,
Robert
More information about the opencms-dev
mailing list