Hi Chris,

Yes, I evaluated it (eclipse 3.2.1 can do that) and used one of the
generated hashCode (in a hurry) but equals isn't ideal!. I wouldn't
touch it with a barge pole :)

especially this piece of code

if (getClass() != obj.getClass())
                      return false;

See http://www.artima.com/intv/bloch17.html for a discussion

and too many return satements is from my point of view: abhorrent (not
conducive to debugging or logging if you want a justification and
reduced readability isn't enough of a justification).

Cheers
Piyush

Reply via email to