classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] [Patch] java.lang.Boolean improvments


From: Michael Koch
Subject: Re: [cp-patches] [Patch] java.lang.Boolean improvments
Date: Mon, 25 Oct 2004 19:26:41 +0200
User-agent: KMail/1.6.2

Am Montag, 25. Oktober 2004 18:43 schrieb Mark Wielaard:
> Hi,
>
> On Mon, 2004-10-25 at 12:41, Michael Koch wrote:
> > I just commited the attached patch to improve usage of
> > java.lang.Boolean usage. Its better to use Boolean.valueOf()
> > instead of creating a new instance each time.
> >
> > -  public static final Boolean RUN_DIRECTION_LTR = new Boolean
> > (true); -  public static final Boolean RUN_DIRECTION_RTL = new
> > Boolean (false); +  public static final Boolean RUN_DIRECTION_LTR
> > = Boolean.valueOf(true); +  public static final Boolean
> > RUN_DIRECTION_RTL = Boolean.valueOf(false);
>
> Note that you can just use Boolean.TRUE and Boolean.FALSE here.

Thanks, will do this.

Sometimes I get blind from looking too much at the code.


Michael
-- 
Homepage: http://www.worldforge.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]