directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r499771 - /directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluator.java
Date Thu, 25 Jan 2007 12:52:57 GMT
Author: elecharny
Date: Thu Jan 25 04:52:56 2007
New Revision: 499771

URL: http://svn.apache.org/viewvc?view=rev&rev=499771
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/subtree/RefinementLeafEvaluator.java

Modified: directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluator.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluator.java?view=diff&rev=499771&r1=499770&r2=499771
==============================================================================
--- directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluator.java
(original)
+++ directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluator.java
Thu Jan 25 04:52:56 2007
@@ -23,6 +23,7 @@
 import org.apache.directory.server.core.schema.OidRegistry;
 import org.apache.directory.shared.ldap.filter.LeafNode;
 import org.apache.directory.shared.ldap.filter.SimpleNode;
+import org.apache.directory.shared.ldap.util.AttributeUtils;
 import org.apache.directory.shared.ldap.util.StringTools;
 
 import javax.naming.NamingException;
@@ -91,7 +92,7 @@
         }
 
         // check if AVA value exists in attribute
-        if ( objectClasses.contains( node.getValue() ) )
+        if ( AttributeUtils.containsValueCaseIgnore( objectClasses, node.getValue() ) )
         {
             return true;
         }
@@ -117,7 +118,7 @@
             while ( list.hasNext() )
             {
                 String objectClass = ( String ) list.next();
-                if ( objectClasses.contains( objectClass ) )
+                if ( AttributeUtils.containsValueCaseIgnore( objectClasses, objectClass )
)
                 {
                     return true;
                 }



Mime
View raw message