directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r951481 - in /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries: DefaultAttributeTypeRegistry.java DefaultObjectClassRegistry.java
Date Fri, 04 Jun 2010 16:35:39 GMT
Author: felixk
Date: Fri Jun  4 16:35:38 2010
New Revision: 951481

URL: http://svn.apache.org/viewvc?rev=951481&view=rev
Log:
Removing from maps will need the key and not the value to get the wanted entry removed

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultAttributeTypeRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultObjectClassRegistry.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultAttributeTypeRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultAttributeTypeRegistry.java?rev=951481&r1=951480&r2=951481&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultAttributeTypeRegistry.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultAttributeTypeRegistry.java
Fri Jun  4 16:35:38 2010
@@ -178,7 +178,7 @@ public class DefaultAttributeTypeRegistr
 
             if ( descendants.size() == 0 )
             {
-                oidToDescendantSet.remove( descendants );
+                oidToDescendantSet.remove( ancestor.getOid() );
             }
         }
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultObjectClassRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultObjectClassRegistry.java?rev=951481&r1=951480&r2=951481&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultObjectClassRegistry.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultObjectClassRegistry.java
Fri Jun  4 16:35:38 2010
@@ -163,7 +163,7 @@ public class DefaultObjectClassRegistry 
                 
                 if ( descendants.size() == 0 )
                 {
-                    oidToDescendants.remove( descendants );
+                    oidToDescendants.remove( ancestor.getOid() );
                 }
             }
             



Mime
View raw message