[jboss-cvs] JBossCache/src/org/jboss/cache/config ...

Manik Surtani msurtani at jboss.com
Tue Jul 18 14:28:39 EDT 2006


  User: msurtani
  Date: 06/07/18 14:28:39

  Modified:    src/org/jboss/cache/config  ConfigurationImpl.java
  Log:
  Cache construction tests
  
  Revision  Changes    Path
  1.4       +17 -0     JBossCache/src/org/jboss/cache/config/ConfigurationImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConfigurationImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/config/ConfigurationImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- ConfigurationImpl.java	18 Jul 2006 17:50:55 -0000	1.3
  +++ ConfigurationImpl.java	18 Jul 2006 18:28:39 -0000	1.4
  @@ -155,4 +155,21 @@
                   ", immutable=" + immutable +
                   '}';
       }
  +
  +    public boolean equals(Object o)
  +    {
  +        if (this == o) return true;
  +        if (o == null || getClass() != o.getClass()) return false;
  +
  +        final ConfigurationImpl that = (ConfigurationImpl) o;
  +
  +        return !(stringAttribs != null ? !stringAttribs.equals(that.stringAttribs) : that.stringAttribs != null);
  +    }
  +
  +    public int hashCode()
  +    {
  +        int result;
  +        result = (stringAttribs != null ? stringAttribs.hashCode() : 0);
  +        return result;
  +    }
   }
  
  
  



More information about the jboss-cvs-commits mailing list