directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1331625 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultAttribute.java
Date Fri, 27 Apr 2012 22:59:55 GMT
Author: elecharny
Date: Fri Apr 27 22:59:55 2012
New Revision: 1331625

URL: http://svn.apache.org/viewvc?rev=1331625&view=rev
Log:
No need to rehash the cloned Attribute, as the hash won't be different for a cloned element.

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultAttribute.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultAttribute.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultAttribute.java?rev=1331625&r1=1331624&r2=1331625&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultAttribute.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultAttribute.java
Fri Apr 27 22:59:55 2012
@@ -1930,9 +1930,6 @@ public class DefaultAttribute implements
                 attribute.attributeType = attributeType;
             }
             
-            // Compute the hashCode
-            rehash();
-    
             attribute.values = new LinkedHashSet<Value<?>>( values.size() );
 
             for ( Value<?> value : values )



Mime
View raw message