Use java6+ methods

This commit is contained in:
norman 2012-03-12 13:25:19 +01:00
parent 5830e5a7fb
commit 0fb4dc5431

View File

@ -16,6 +16,7 @@
package io.netty.handler.codec.redis;
import io.netty.buffer.ChannelBuffer;
import io.netty.util.CharsetUtil;
import java.io.IOException;
@ -68,7 +69,7 @@ public class Command {
} else if (object instanceof byte[]) {
arguments[i] = (byte[]) object;
} else {
arguments[i] = object.toString().getBytes("UTF-8");
arguments[i] = object.toString().getBytes(CharsetUtil.UTF_8);
}
}
writeDirect(os, arguments);