directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r951443 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/DefaultEntryAttribute.java
Date Fri, 04 Jun 2010 15:32:49 GMT
Author: felixk
Date: Fri Jun  4 15:32:48 2010
New Revision: 951443

URL: http://svn.apache.org/viewvc?rev=951443&view=rev
Log:
Remove dead code

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

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/DefaultEntryAttribute.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/DefaultEntryAttribute.java?rev=951443&r1=951442&r2=951443&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/DefaultEntryAttribute.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/DefaultEntryAttribute.java
Fri Jun  4 15:32:48 2010
@@ -1472,36 +1472,12 @@ public class DefaultEntryAttribute imple
         {
             if ( isHR )
             {
-                // Iterate through all the values, and quit if we 
-                // don't find one in the values
-                if ( attributeType != null )
-                {
-                    for ( String val:vals )
-                    {
-                        Value<String> value = createStringValue( attributeType, val
);
-                        
-                        if ( value == null )
-                        {
-                            // The value can't be normalized : we don't add it.
-                            LOG.error( I18n.err( I18n.ERR_04449, val ) );
-                            return false;
-                        }
-    
-                        if ( !contains( value ) )
-                        {
-                            return false;
-                        }
-                    }
-                }
-                else
+                for ( String val:vals )
                 {
-                    for ( String val:vals )
+                    
+                    if ( !contains( new StringValue( val ) ) )
                     {
-                        
-                        if ( !contains( new StringValue( val ) ) )
-                        {
-                            return false;
-                        }
+                        return false;
                     }
                 }
             }



Mime
View raw message