From 57ed3c1ee884e1fd3b9dffd68c53b6602955ac85 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 7 Aug 2009 03:42:21 +0000 Subject: [PATCH] Removed unnecessary String.valueOf() call in StringEncoder --- .../org/jboss/netty/handler/codec/string/StringEncoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/handler/codec/string/StringEncoder.java b/src/main/java/org/jboss/netty/handler/codec/string/StringEncoder.java index 55212706f1..12edc3fd8f 100644 --- a/src/main/java/org/jboss/netty/handler/codec/string/StringEncoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/string/StringEncoder.java @@ -93,6 +93,6 @@ public class StringEncoder extends OneToOneEncoder { if (!(msg instanceof String)) { return msg; } - return copiedBuffer(String.valueOf(msg), charsetName); + return copiedBuffer((String) msg, charsetName); } }