use stringbuilder instead of stringbuffer

This commit is contained in:
2016-05-05 18:07:08 +02:00
parent c1b8f16fec
commit f4116b0f46
+1 -1
View File
@@ -1517,7 +1517,7 @@ public class Main {
try {
java.security.MessageDigest md = java.security.MessageDigest.getInstance("MD5");
byte[] array = md.digest(data);
StringBuffer sb = new StringBuffer();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < array.length; ++i) {
sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1, 3));
}