You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by fe...@apache.org on 2010/06/04 17:32:49 UTC
svn commit: r951443 -
/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/DefaultEntryAttribute.java
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;
}
}
}