avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosu...@apache.org
Subject cvs commit: avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/lookup ComponentKey.java
Date Tue, 27 May 2003 12:51:27 GMT
leosutic    2003/05/27 05:51:27

  Modified:    fortress/src/java/org/apache/avalon/fortress/impl/lookup
                        ComponentKey.java
  Log:
  Applied patch by Gunnar Brand [g.brand@interface-business.de] that allows the
  ComponentKey to handle components that return different hashCode()s depending
  on internal state. The hashCode of a ComponentKey is now constant for the
  entire life of the key.
  
  Revision  Changes    Path
  1.8       +1 -1      avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/lookup/ComponentKey.java
  
  Index: ComponentKey.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/lookup/ComponentKey.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ComponentKey.java	18 Apr 2003 20:02:30 -0000	1.7
  +++ ComponentKey.java	27 May 2003 12:51:27 -0000	1.8
  @@ -70,6 +70,6 @@
   
       public int hashCode()
       {
  -        return m_component.hashCode();
  +        return System.identityHashCode(m_component);
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message