donaldp     2003/03/19 04:48:40

  Modified:    fortress/src/java/org/apache/avalon/fortress/impl/lookup
                        ComponentKey.java
  Log:
  naming
  
  Revision  Changes    Path
  1.2       +19 -18    
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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ComponentKey.java 27 Feb 2003 20:04:53 -0000      1.1
  +++ ComponentKey.java 19 Mar 2003 12:48:40 -0000      1.2
  @@ -53,22 +53,23 @@
    * Hack that is temporarily necessary until the next version of
    * Commons Collections is released.
    */
  -final class ComponentKey
  -{
  -    private final Object component;
  -    
  -    public ComponentKey( Object component )
  -    {
  -        this.component = component;
  -    }
  -    
  -    public boolean equals( Object other )
  -    {
  -        return (other instanceof ComponentKey) && ((ComponentKey) other).component 
== this.component;
  -    }
  -    
  -    public int hashCode()
  -    {
  -        return component.hashCode();
  -    }
  +final class ComponentKey
  +{
  +    private final Object m_component;
  +
  +    public ComponentKey( final Object component )
  +    {
  +        m_component = component;
  +    }
  +
  +    public boolean equals( Object other )
  +    {
  +        return ( other instanceof ComponentKey ) &&
  +            ( (ComponentKey)other ).m_component == m_component;
  +    }
  +
  +    public int hashCode()
  +    {
  +        return m_component.hashCode();
  +    }
   }
  
  
  

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

Reply via email to