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
- Bug in java.lang.Boolean John Leuner
- Re: Bug in java.lang.Boolean Daniel L. Rall
- Re: Bug in java.lang.Boolean Paul Fisher
- Re: Bug in java.lang.Boolean Brian Jones
- Re: Bug in java.lang.Boolean John Leuner

