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

iluo pushed a commit to branch dev-metadata
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git


The following commit(s) were added to refs/heads/dev-metadata by this push:
     new 48e482e  [DOCS]:[fix comment statement and reformat code] (#2844)
48e482e is described below

commit 48e482e0e71c93be9d8c576c842123bb30363fc8
Author: Yangki Zhang <[email protected]>
AuthorDate: Fri Dec 7 09:56:56 2018 +0800

    [DOCS]:[fix comment statement and reformat code] (#2844)
---
 .../dubbo/configcenter/AbstractDynamicConfiguration.java     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/dubbo-configcenter/dubbo-configcenter-api/src/main/java/org/apache/dubbo/configcenter/AbstractDynamicConfiguration.java
 
b/dubbo-configcenter/dubbo-configcenter-api/src/main/java/org/apache/dubbo/configcenter/AbstractDynamicConfiguration.java
index 6d711ba..9cd120f 100644
--- 
a/dubbo-configcenter/dubbo-configcenter-api/src/main/java/org/apache/dubbo/configcenter/AbstractDynamicConfiguration.java
+++ 
b/dubbo-configcenter/dubbo-configcenter-api/src/main/java/org/apache/dubbo/configcenter/AbstractDynamicConfiguration.java
@@ -26,7 +26,7 @@ import java.util.concurrent.ConcurrentMap;
  * Dynamic configuration template class. The concrete implementation needs to 
provide implementation for three methods.
  *
  * @see AbstractDynamicConfiguration#getTargetConfig(String, String, long)
- * @see AbstractDynamicConfiguration#addConfigurationListener(String key, 
TargetListener, ConfigurationListener)
+ * @see AbstractDynamicConfiguration#addConfigurationListener(String, 
TargetListener, ConfigurationListener)
  * @see AbstractDynamicConfiguration#createTargetListener(String)
  */
 public abstract class AbstractDynamicConfiguration<TargetListener> extends 
AbstractConfiguration
@@ -36,8 +36,7 @@ public abstract class 
AbstractDynamicConfiguration<TargetListener> extends Abstr
     protected URL url;
 
     // One key can register multiple target listeners, but one target listener 
only maps to one configuration listener
-    protected ConcurrentMap<String, TargetListener> targetListeners =
-            new ConcurrentHashMap<>();
+    protected ConcurrentMap<String, TargetListener> targetListeners = new 
ConcurrentHashMap<>();
 
     public AbstractDynamicConfiguration() {
     }
@@ -96,8 +95,9 @@ public abstract class 
AbstractDynamicConfiguration<TargetListener> extends Abstr
     /**
      * Register a native listener to the backend config storage so that Dubbo 
has chance to get notified when the
      * value changes.
-     * @param key
-     * @param targetListener Implementation dependent listener, such as, 
zookeeper watcher, Apollo listener, ...
+     *
+     * @param key                   property key
+     * @param targetListener        Implementation dependent listener, such 
as, zookeeper watcher, Apollo listener, ...
      * @param configurationListener Listener in Dubbo that will handle 
notification.
      */
     protected abstract void addConfigurationListener(String key, 
TargetListener targetListener, ConfigurationListener configurationListener);
@@ -106,7 +106,7 @@ public abstract class 
AbstractDynamicConfiguration<TargetListener> extends Abstr
      * Create a native listener for the backend config storage, eventually 
ConfigurationListener will get notified once
      * the value changes.
      *
-     * @param key      property key the native listener will listen on
+     * @param key property key the native listener will listen on
      * @return native listener for the backend config storage
      */
     protected abstract TargetListener createTargetListener(String key);

Reply via email to