This is an automated email from the ASF dual-hosted git repository.

iluo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new 18357d6  1. remove getExecutorService method cexecutor local variables 
(#4319)
18357d6 is described below

commit 18357d68559abf8557da42ab3c73e8add60161ef
Author: andyqian <[email protected]>
AuthorDate: Wed Jul 17 15:34:04 2019 +0800

    1. remove getExecutorService method cexecutor local variables (#4319)
---
 .../dubbo/remoting/transport/dispatcher/WrappedChannelHandler.java | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 
a/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/dispatcher/WrappedChannelHandler.java
 
b/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/dispatcher/WrappedChannelHandler.java
index 4fe83ec..cdf020a 100644
--- 
a/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/dispatcher/WrappedChannelHandler.java
+++ 
b/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/dispatcher/WrappedChannelHandler.java
@@ -113,11 +113,8 @@ public class WrappedChannelHandler implements 
ChannelHandlerDelegate {
     }
 
     public ExecutorService getExecutorService() {
-        ExecutorService cexecutor = executor;
-        if (cexecutor == null || cexecutor.isShutdown()) {
-            cexecutor = SHARED_EXECUTOR;
-        }
-        return cexecutor;
+        return executor == null || executor.isShutdown() ? SHARED_EXECUTOR : 
executor;
     }
 
+
 }

Reply via email to