John Leuner <[EMAIL PROTECTED]> writes:

> The existing code for the equals method:
> 
>     public boolean equals(Object obj) {
>       return (obj instanceof Boolean && value == ((Boolean)obj).value);
>     }
> 
> this doesn't check for a null obj, [...]

instanceof will return false if obj is null.

-- 
Paul Fisher

Reply via email to