sebb        2004/02/21 13:22:35

  Modified:    src/core/org/apache/jmeter/testelement/property
                        CollectionProperty.java
  Log:
  Implement hashCode() to go with equals()
  
  Revision  Changes    Path
  1.14      +7 -2      
jakarta-jmeter/src/core/org/apache/jmeter/testelement/property/CollectionProperty.java
  
  Index: CollectionProperty.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/testelement/property/CollectionProperty.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- CollectionProperty.java   13 Feb 2004 02:21:38 -0000      1.13
  +++ CollectionProperty.java   21 Feb 2004 21:22:35 -0000      1.14
  @@ -57,6 +57,11 @@
           return false;
       }
   
  +    public int hashCode()
  +     {
  +     return (value == null ? 0 : value.hashCode());
  +    }
  +    
       public void remove(String prop)
       {
           PropertyIterator iter = iterator();
  
  
  

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

Reply via email to