format all the things!

This commit is contained in:
jaredlll08 committed 2015-08-31 19:15:35 +02:00
1 parent 54ec75fd3d
commit b36c6dade6
377 files changed
+6833 -6772

No files matched your search

@@ -16,14 +16,15 @@ import java.nio.charset.Charset;
public class StringUtil
{
private static final Charset UTF8 = Charset.forName("UTF-8");
private StringUtil() {}
private StringUtil() {
}
public static String decodeUTF8(byte[] data)
{
return UTF8.decode(ByteBuffer.wrap(data)).toString().trim();
}
public static byte[] encodeUTF8(String data)
{
return UTF8.encode(data).array();