commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Smith" <mich...@iammichael.org>
Subject [collections][PATCH] DefaultMapEntry: license update, hashCode/equals fixes
Date Sun, 10 Feb 2002 05:53:45 GMT
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

Mime
View raw message