Unverified Commit 1213ff26 authored by skylot's avatar skylot Committed by GitHub

Merge pull request #324 from FlXME/patch-1

Performance issue when building strings
parents 3bf93f1f fdaf8492
......@@ -193,7 +193,7 @@ public class CertificateManager {
char[] hexDigits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F'};
StringBuffer buf = new StringBuffer(bytes.length * 3);
StringBuilder buf = new StringBuilder(bytes.length * 3);
for (int i = 0; i < bytes.length; ++i) {
buf.append(hexDigits[(bytes[i] & 0xf0) >> 4]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment