You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2006/12/30 19:28:55 UTC

svn commit: r491275 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/bind/SimpleAuthentication.java

Author: elecharny
Date: Sat Dec 30 10:28:54 2006
New Revision: 491275

URL: http://svn.apache.org/viewvc?view=rev&rev=491275
Log:
Replaced a call to toString() on a byte[] by a call to StringTools.dumpBytes()
Replaced new Integer( xxx ) by Integer.valueof( xxx )

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/bind/SimpleAuthentication.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/bind/SimpleAuthentication.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/bind/SimpleAuthentication.java?view=diff&rev=491275&r1=491274&r2=491275
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/bind/SimpleAuthentication.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/bind/SimpleAuthentication.java Sat Dec 30 10:28:54 2006
@@ -26,6 +26,7 @@
 import org.apache.directory.shared.asn1.ber.tlv.TLV;
 import org.apache.directory.shared.asn1.codec.EncoderException;
 import org.apache.directory.shared.ldap.codec.LdapConstants;
+import org.apache.directory.shared.ldap.util.StringTools;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -91,7 +92,7 @@
 
         if ( IS_DEBUG )
         {
-            log.debug( "Simple Authentication length : {}", new Integer( length ) );
+            log.debug( "Simple Authentication length : {}", Integer.valueOf( length ) );
         }
 
         return length;
@@ -142,6 +143,6 @@
      */
     public String toString()
     {
-        return ( ( simple == null ) ? "null" : simple.toString() );
+        return ( ( simple == null ) ? "null" : StringTools.dumpBytes( simple) );
     }
 }