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/incubator-dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new 93a8ee0  move construction of ConfigChangeEvent outside the lambda 
expression (#3398)
93a8ee0 is described below

commit 93a8ee0789e46ab3f8721ecd7df33b4c84df1a91
Author: wanghbxxxx <[email protected]>
AuthorDate: Thu Jan 31 11:22:20 2019 +0800

    move construction of ConfigChangeEvent outside the lambda expression (#3398)
---
 .../configcenter/support/apollo/ApolloDynamicConfiguration.java    | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 
a/dubbo-configcenter/dubbo-configcenter-apollo/src/main/java/org/apache/dubbo/configcenter/support/apollo/ApolloDynamicConfiguration.java
 
b/dubbo-configcenter/dubbo-configcenter-apollo/src/main/java/org/apache/dubbo/configcenter/support/apollo/ApolloDynamicConfiguration.java
index f0ad75b..ebce303 100644
--- 
a/dubbo-configcenter/dubbo-configcenter-apollo/src/main/java/org/apache/dubbo/configcenter/support/apollo/ApolloDynamicConfiguration.java
+++ 
b/dubbo-configcenter/dubbo-configcenter-apollo/src/main/java/org/apache/dubbo/configcenter/support/apollo/ApolloDynamicConfiguration.java
@@ -176,11 +176,8 @@ public class ApolloDynamicConfiguration implements 
DynamicConfiguration {
                     return;
                 }
 
-                listeners.forEach(listener -> {
-                            ConfigChangeEvent event = new 
ConfigChangeEvent(key, change.getNewValue(), getChangeType(change));
-                            listener.process(event);
-                        }
-                );
+                ConfigChangeEvent event = new ConfigChangeEvent(key, 
change.getNewValue(), getChangeType(change));
+                listeners.forEach(listener -> listener.process(event));
             }
         }
 

Reply via email to