directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1332481 - /directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchResultEntryDecorator.java
Date Tue, 01 May 2012 00:23:16 GMT
Author: elecharny
Date: Tue May  1 00:23:15 2012
New Revision: 1332481

URL: http://svn.apache.org/viewvc?rev=1332481&view=rev
Log:
Small speedup : we now store the byte[] for string elements when we compute the length, so
that we don't have to convert the String to a byte[] twice.

Modified:
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchResultEntryDecorator.java

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchResultEntryDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchResultEntryDecorator.java?rev=1332481&r1=1332480&r2=1332481&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchResultEntryDecorator.java
(original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchResultEntryDecorator.java
Tue May  1 00:23:15 2012
@@ -458,14 +458,7 @@ public class SearchResultEntryDecorator 
                     {
                         for ( org.apache.directory.shared.ldap.model.entry.Value<?>
value : attribute )
                         {
-                            if ( value.isHumanReadable() )
-                            {
-                                Value.encode( buffer, value.getString() );
-                            }
-                            else
-                            {
-                                Value.encode( buffer, value.getBytes() );
-                            }
+                            Value.encode( buffer, value.getBytes() );
                         }
                     }
 



Mime
View raw message