directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 56468 - incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message
Date Wed, 03 Nov 2004 04:08:59 GMT
Author: akarasulu
Date: Tue Nov  2 20:08:59 2004
New Revision: 56468

Modified:
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/LockableAttributesImpl.java
Log:
using a deep copy instead

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/LockableAttributesImpl.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/LockableAttributesImpl.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/LockableAttributesImpl.java
Tue Nov  2 20:08:59 2004
@@ -85,7 +85,13 @@
     {
         super( parent, false );
 
-        this.map.putAll( map );
+        Iterator list = map.values().iterator();
+        while ( list.hasNext() )
+        {
+            Attribute attr = ( Attribute ) list.next();
+            this.map.put( attr.getID(), attr.clone() );
+        }
+
         this.keyMap = new HashMap();
 
         if ( keyMap != null )

Mime
View raw message