directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r366624 - /directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/codec/Control.java
Date Sat, 07 Jan 2006 01:43:15 GMT
Author: akarasulu
Date: Fri Jan  6 17:43:13 2006
New Revision: 366624

URL: http://svn.apache.org/viewcvs?rev=366624&view=rev
Log:
another class cast exception 

Modified:
    directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/codec/Control.java

Modified: directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/codec/Control.java
URL: http://svn.apache.org/viewcvs/directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/codec/Control.java?rev=366624&r1=366623&r2=366624&view=diff
==============================================================================
--- directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/codec/Control.java (original)
+++ directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/codec/Control.java Fri
Jan  6 17:43:13 2006
@@ -291,15 +291,14 @@
         
         if ( controlValue != null ) 
         {
-        	if ( controlValue instanceof String )
-        	{
-                sb.append("        Control value : '").append( controlValue ).append("'\n");
-        	}
-        	else
+        	if ( controlValue instanceof byte[] )
         	{
                 sb.append("        Control value : '").append( StringTools.dumpBytes( (byte[])controlValue
) ).append("'\n");
         	}
-        	
+            else
+            {
+                sb.append("        Control value : '").append( controlValue ).append("'\n");
+            }
         }
         
         return sb.toString();



Mime
View raw message