Removed unnecessary String.valueOf() call in StringEncoder

This commit is contained in:
Trustin Lee 2009-08-07 03:42:21 +00:00
parent 8a35a9aad3
commit 57ed3c1ee8

View File

@ -93,6 +93,6 @@ public class StringEncoder extends OneToOneEncoder {
if (!(msg instanceof String)) { if (!(msg instanceof String)) {
return msg; return msg;
} }
return copiedBuffer(String.valueOf(msg), charsetName); return copiedBuffer((String) msg, charsetName);
} }
} }