You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2015/08/21 11:29:18 UTC
svn commit: r1696913 -
/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java
Author: sebb
Date: Fri Aug 21 09:29:18 2015
New Revision: 1696913
URL: http://svn.apache.org/r1696913
Log:
Tweak
Modified:
commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java
Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java?rev=1696913&r1=1696912&r2=1696913&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java Fri Aug 21 09:29:18 2015
@@ -1122,13 +1122,13 @@ public abstract class Utility {
*
* @param bytes an array of bytes to convert to hexadecimal
*
- * @return bytes as hexadecimal string, e.g. 00 FA 12 ...
+ * @return bytes as hexadecimal string, e.g. 00 fa 12 ...
*/
public static String toHexString( byte[] bytes ) {
StringBuilder buf = new StringBuilder();
for (int i = 0; i < bytes.length; i++) {
short b = byteToShort(bytes[i]);
- String hex = Integer.toString(b, 0x10);
+ String hex = Integer.toHexString(b);
if (b < 0x10) {
buf.append('0');
}