logo       

Re: BC: Unchecked/unconfirmed cast (BC_UNCONFIRMED_CAST): msg#00012

java.findbugs.general

Subject: Re: BC: Unchecked/unconfirmed cast (BC_UNCONFIRMED_CAST)

On 11/29/06, Nils Kilden-Pedersen <nilskp@xxxxxxxxx> wrote:
In a MyClass.equals(Object) implementation, I have this code:

public boolean equals(Object object) {
    if (this.getClass() == object.getClass() {
        MyClass that = (MyClass) object;
        ...
    }
    ...
}

This incorrectly causes a "BC: Unchecked/unconfirmed cast" warning.

Any comment on this? Will a fix for this make it into 1.1.2?




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise