directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r801322 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientBinaryValue.java
Date Wed, 05 Aug 2009 17:24:01 GMT
Author: elecharny
Date: Wed Aug  5 17:24:00 2009
New Revision: 801322

URL: http://svn.apache.org/viewvc?rev=801322&view=rev
Log:
Updated the normalize() method to update the 'same' flag

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

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientBinaryValue.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientBinaryValue.java?rev=801322&r1=801321&r2=801322&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientBinaryValue.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientBinaryValue.java
Wed Aug  5 17:24:00 2009
@@ -188,12 +188,15 @@
         {
             if ( wrapped == null )
             {
+                normalizedValue = wrapped;
                 normalized = true;
+                same = true;
             }
             else
             {
                 normalizedValue = normalizer.normalize( this ).getBytes();
                 normalized = true;
+                same = Arrays.equals( wrapped, normalizedValue );
             }
         }
     }



Mime
View raw message