I enhanced verifyEq(a, b) to also verify that a.hash == b.hash. This caught a couple places I was overriding equals(), but not hash() which as a rule should never be done.
Login or Signup to reply.
brian Sat 1 Jul 2006
I enhanced verifyEq(a, b) to also verify that a.hash == b.hash. This caught a couple places I was overriding equals(), but not hash() which as a rule should never be done.