Changes to src/java/org/apache/commons/collections/DefaultMapEntry.java:

 - Changed license to proper long form

 - Reimplemented hashCode and equals to conform to the Map.Entry API
spec:
    -  equals caused NPE on null instead of returning false
    -  equals only worked against DefaultMapEntry implementations and
not
       other Map.Entry implementations
    -  hashcode of a null key and null object should be 0, not 123456789

 - Improved implementation of hashCode and equals to minimize work
required
   to compute the result


Regards,
michael

Attachment: DefaultMapEntry-20020209.patch
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to