Dalibor Topic wrote:
Hi,

a couple of classes in java.util have the same
implementation of a static final equals and hashCode
method taking two arguments.
What is the reason why not all the calls are delegated
to a single implementation, say
AbstractCollection.equals/hashCode instead of
duplicating the code ?
Because I was lazy - using inheritance, I could just type equals(a, b), instead of the full Collections.equals(a, b) if the helper methods lived in a single file. Feel free to change that if you want.

--
This signature intentionally left boring.

Eric Blake [EMAIL PROTECTED]
BYU student, free software programmer




_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath


Reply via email to