directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r491275 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/bind/SimpleAuthentication.java
Date Sat, 30 Dec 2006 18:28:55 GMT
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) );
     }
 }



Mime
View raw message