directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r328745 - /directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/message/ModifyRequestImpl.java
Date Wed, 26 Oct 2005 21:36:52 GMT
Author: elecharny
Date: Wed Oct 26 14:36:48 2005
New Revision: 328745

URL: http://svn.apache.org/viewcvs?rev=328745&view=rev
Log:
Fixed the update of the Hashmap used to compare attribute's values

Modified:
    directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/message/ModifyRequestImpl.java

Modified: directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/message/ModifyRequestImpl.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/message/ModifyRequestImpl.java?rev=328745&r1=328744&r2=328745&view=diff
==============================================================================
--- directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/message/ModifyRequestImpl.java
(original)
+++ directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/message/ModifyRequestImpl.java
Wed Oct 26 14:36:48 2005
@@ -271,12 +271,15 @@
 	        	{
                     if (value instanceof byte[] )
                     {
-                        if ( attrHash0.contains( StringUtils.toUtf8( (byte[])value ) ) ==
false )
+                        String sValue = StringUtils.toUtf8( (byte[])value );
+                        
+                        if ( attrHash0.contains( sValue ) == false )
                         {
                             return false;
                         }
                         else
                         {
+                            attrHash0.remove( sValue );
                             continue;
                         }
                     }
@@ -291,7 +294,7 @@
 	        	}
 	        }
 	        
-	        return ( attrHash0.size() != 0 );
+	        return ( attrHash0.size() == 0 );
         }
         catch ( NamingException ne )
         {



Mime
View raw message