directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r209346 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/Control.java
Date Tue, 05 Jul 2005 23:08:42 GMT
Author: elecharny
Date: Tue Jul  5 16:08:40 2005
New Revision: 209346

URL: http://svn.apache.org/viewcvs?rev=209346&view=rev
Log:
Fixed the toString() method, adding the name of the objects 

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/Control.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/Control.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/Control.java?rev=209346&r1=209345&r2=209346&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/Control.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/Control.java
Tue Jul  5 16:08:40 2005
@@ -22,7 +22,7 @@
 
 
 /**
- * A ldapObject to store Control.
+ * A Asn1Object to store a Control.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
@@ -108,16 +108,15 @@
     {
         StringBuffer sb = new StringBuffer();
         
-        sb.append("    Control :\n");
-        sb.append("        ").append(controlType.toString()).append('\n');
-        sb.append("        ").append(criticality).append('\n');
+        sb.append("    Control\n");
+        sb.append("        Control type : '").append( controlType.toString() ).append("'\n");
+        sb.append("        Criticality : '").append( criticality ).append( "'\n") ;
         
         if ( controlValue != null ) 
         {
-            sb.append("        ").append(controlValue.toString()).append('\n');
+            sb.append("        Control value : '").append(controlValue.toString()).append("'\n");
         }
         
-        sb.append( "\n" );
         return sb.toString();
     }
 }



Mime
View raw message