directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1087295 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntryAttribute.java
Date Thu, 31 Mar 2011 13:39:21 GMT
Author: elecharny
Date: Thu Mar 31 13:39:20 2011
New Revision: 1087295

URL: http://svn.apache.org/viewvc?rev=1087295&view=rev
Log:
Removed the contains( Object... ) method

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

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntryAttribute.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntryAttribute.java?rev=1087295&r1=1087294&r2=1087295&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntryAttribute.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntryAttribute.java
Thu Mar 31 13:39:20 2011
@@ -1559,64 +1559,6 @@ public class DefaultEntryAttribute imple
     
     
     /**
-     * @see EntryAttribute#contains(Object...)
-     */
-    public boolean contains( Object... vals )
-    {
-        boolean isHR = true;
-        boolean seen = false;
-        
-        // Iterate through all the values, and quit if we 
-        // don't find one in the values
-        for ( Object val:vals )
-        {
-            if ( ( val instanceof String ) ) 
-            {
-                if ( !seen )
-                {
-                    isHR = true;
-                    seen = true;
-                }
-
-                if ( isHR )
-                {
-                    if ( !contains( (String)val ) )
-                    {
-                        return false;
-                    }
-                }
-                else
-                {
-                    return false;
-                }
-            }
-            else
-            {
-                if ( !seen )
-                {
-                    isHR = false;
-                    seen = true;
-                }
-
-                if ( !isHR )
-                {
-                    if ( !contains( (byte[])val ) )
-                    {
-                        return false;
-                    }
-                }
-                else
-                {
-                    return false;
-                }
-            }
-        }
-        
-        return true;
-    }
-
-    
-    /**
      * <p>
      * Get the first value of this attribute. If there is none, 
      * null is returned.



Mime
View raw message