Update PlayWriter.java

This commit is contained in:
akp 2023-03-03 23:19:02 +00:00
parent f5434b6f24
commit 3edcb8e003
No known key found for this signature in database
GPG key ID: AA5726202C8879B7

View file

@ -235,17 +235,4 @@ public class PlayWriter {
new PrintWriter(os, true).println(in);
}
// TODO: REMOVE THIS
private static final char[] HEX_ARRAY = "0123456789ABCDEF".toCharArray();
public static String bytesToHex(byte[] bytes) {
char[] hexChars = new char[bytes.length * 2];
for (int j = 0; j < bytes.length; j++) {
int v = bytes[j] & 0xFF;
hexChars[j * 2] = HEX_ARRAY[v >>> 4];
hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];
}
return new String(hexChars);
}
}