public static String toStringCondensed(byte[] bytes) {
StringBuffer buf = new StringBuffer();
- for (int i = 0; i < bytes.length; i++) {
- appendHexChar(buf, bytes[i]);
+ for (final byte aByte : bytes) {
+ appendHexChar(buf, aByte);
}
return buf.toString();
}