directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r224570 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/StringUtils.java
Date Sat, 23 Jul 2005 22:52:33 GMT
Author: elecharny
Date: Sat Jul 23 15:52:30 2005
New Revision: 224570

URL: http://svn.apache.org/viewcvs?rev=224570&view=rev
Log:
The dumpByte method returns a more commonly used byte string: 0x1B instead of [1B]

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/StringUtils.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/StringUtils.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/StringUtils.java?rev=224570&r1=224569&r2=224570&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/StringUtils.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/StringUtils.java
Sat Jul 23 15:52:30 2005
@@ -119,7 +119,7 @@
     public static String dumpByte( byte octet )
     {
         return new String(
-                new byte[] { '[', HEX_CHAR[( octet & 0x00F0 ) >> 4], HEX_CHAR[octet
& 0x000F], ']' } );
+                new byte[] { '0', 'x', HEX_CHAR[( octet & 0x00F0 ) >> 4], HEX_CHAR[octet
& 0x000F] } );
     }
     
     /**



Mime
View raw message