classpath-patches
[Top][All Lists]
Advanced

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

Re: [cp-patches] invalidate Label on setText


From: Mark Wielaard
Subject: Re: [cp-patches] invalidate Label on setText
Date: Sun, 21 Aug 2005 13:50:11 +0200

On Sun, 2005-08-21 at 13:19 +0200, Mark Wielaard wrote:
> This should probably should be
> 
>     if ((this.text == null && text != null)
>         || (! this.text.equals(text)))
> 
> Although invalidating whenever this.text != text probably doesn't hurt.

Ugh, I meant

    if ((this.text == null && text != null)
        || (this.text != null && ! this.text.equals(text)))

Don't want to get NullPointerExceptions here.

Cheers,

Mark

-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/

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


reply via email to

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