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: Mark Wielaard
Subject: Re: [cp-patches] [Patch] java.lang.Boolean improvments
Date: Mon, 25 Oct 2004 18:43:14 +0200

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.

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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