directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r499773 - /directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java
Date Thu, 25 Jan 2007 12:55:50 GMT
Author: elecharny
Date: Thu Jan 25 04:55:49 2007
New Revision: 499773

URL: http://svn.apache.org/viewvc?view=rev&rev=499773
Log:
Used AttributeUtils.containsValueCaseIgnore( attr, value) instead of
attr.contains( value )

Modified:
    directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java

Modified: directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java?view=diff&rev=499773&r1=499772&r2=499773
==============================================================================
--- directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java
(original)
+++ directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java
Thu Jan 25 04:55:49 2007
@@ -63,6 +63,7 @@
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.name.LdapDN;
 import org.apache.directory.shared.ldap.schema.AttributeType;
+import org.apache.directory.shared.ldap.util.AttributeUtils;
 import org.apache.directory.shared.ldap.util.NamespaceTools;
 
 import org.slf4j.Logger;
@@ -834,7 +835,7 @@
         // Start adding the system indices
         // Why bother doing a lookup if this is not an alias.
 
-        if ( objectClass.contains( Partition.ALIAS_OBJECT ) )
+        if ( AttributeUtils.containsValueCaseIgnore( objectClass, Partition.ALIAS_OBJECT
) )
         {
             AttributeType aliasType = attrRegistry.lookup( Partition.ALIAS_ATTRIBUTE );
             Attribute aliasAttr = ServerUtils.getAttribute( aliasType, entry );
@@ -893,7 +894,7 @@
 
         AttributeType octype = attrRegistry.lookup( "objectClass" );
         Attribute objectClass = ServerUtils.getAttribute( octype, entry );
-        if ( objectClass.contains( Partition.ALIAS_OBJECT ) )
+        if ( AttributeUtils.containsValueCaseIgnore( objectClass, Partition.ALIAS_OBJECT
) )
         {
             dropAliasIndices( id );
         }



Mime
View raw message