You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2011/03/31 15:39:21 UTC
svn commit: r1087295 -
/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntryAttribute.java
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.