commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections DefaultMapEntry.java
Date Sun, 04 Jan 2004 18:37:42 GMT
scolebourne    2004/01/04 10:37:42

  Modified:    collections/src/java/org/apache/commons/collections
                        DefaultMapEntry.java
  Log:
  Avoid backwards compatability issues by leaving fields non-final
  
  Revision  Changes    Path
  1.18      +4 -4      jakarta-commons/collections/src/java/org/apache/commons/collections/DefaultMapEntry.java
  
  Index: DefaultMapEntry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/DefaultMapEntry.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- DefaultMapEntry.java	4 Jan 2004 18:04:16 -0000	1.17
  +++ DefaultMapEntry.java	4 Jan 2004 18:37:42 -0000	1.18
  @@ -167,7 +167,7 @@
        * @param obj  the object to compare to
        * @return true if equal key and value
        */
  -    public final boolean equals(Object obj) {
  +    public boolean equals(Object obj) {
           if (obj == this) {
               return true;
           }
  @@ -187,7 +187,7 @@
        * 
        * @return a suitable hashcode
        */
  -    public final int hashCode() {
  +    public int hashCode() {
           return (getKey() == null ? 0 : getKey().hashCode()) ^
                  (getValue() == null ? 0 : getValue().hashCode()); 
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message