From fddedf66608e99f29ad5cf71d36ff8c04ba63b43 Mon Sep 17 00:00:00 2001 From: Ke Li Date: Sat, 24 Feb 2018 13:52:53 +0800 Subject: [PATCH] Merge pull request #1378, replace StringBuider with simple string concatenation in log. --- .../alibaba/dubbo/remoting/transport/DecodeHandler.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dubbo-remoting/dubbo-remoting-api/src/main/java/com/alibaba/dubbo/remoting/transport/DecodeHandler.java b/dubbo-remoting/dubbo-remoting-api/src/main/java/com/alibaba/dubbo/remoting/transport/DecodeHandler.java index 36a9c166d79..fb46f0a70af 100644 --- a/dubbo-remoting/dubbo-remoting-api/src/main/java/com/alibaba/dubbo/remoting/transport/DecodeHandler.java +++ b/dubbo-remoting/dubbo-remoting-api/src/main/java/com/alibaba/dubbo/remoting/transport/DecodeHandler.java @@ -55,16 +55,11 @@ private void decode(Object message) { try { ((Decodeable) message).decode(); if (log.isDebugEnabled()) { - log.debug(new StringBuilder(32).append("Decode decodeable message ") - .append(message.getClass().getName()).toString()); + log.debug("Decode decodeable message " + message.getClass().getName()); } } catch (Throwable e) { if (log.isWarnEnabled()) { - log.warn( - new StringBuilder(32) - .append("Call Decodeable.decode failed: ") - .append(e.getMessage()).toString(), - e); + log.warn("Call Decodeable.decode failed: " + e.getMessage(), e); } } // ~ end of catch } // ~ end of if