directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r278567 - /directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultEntry.java
Date Sun, 04 Sep 2005 09:18:02 GMT
Author: elecharny
Date: Sun Sep  4 02:17:57 2005
New Revision: 278567

URL: http://svn.apache.org/viewcvs?rev=278567&view=rev
Log:
Fix a bug in toString method

Modified:
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultEntry.java

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultEntry.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultEntry.java?rev=278567&r1=278566&r2=278567&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultEntry.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultEntry.java
Sun Sep  4 02:17:57 2005
@@ -456,14 +456,7 @@
                         	Object value = values.nextElement();
                         	sb.append( "                '" );
                         	
-                        	if ( value instanceof String )
-                        	{
-                        		sb.append( value );
-                        	}
-                        	else
-                        	{
-                        		sb.append( StringUtils.dumpBytes( (byte[])value ) );
-                        	}
+                       		sb.append( StringUtils.dumpBytes( ( (OctetString)value ).getValue()
) );
 
                             sb.append("'\n" );
                         }



Mime
View raw message