John J. Allison
...
> if (left.getClass().equals( right.getClass() ) )
> {
> return left.equals( right );
> }
shouldn't calling equals() itself be done before *anything* else? is there
any real case where that would true, yet we'd want to return a different
result?
e.g.:
if (left.equals(right))
{
return true;
}
else
...
it seems to me you only need to look at the class of the objects and/or do
conversions if equals() is false.
Nathan Bubna
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]