You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hu...@apache.org on 2019/04/17 01:15:11 UTC

[incubator-dubbo] branch master updated: Fix javadoc for Adaptive.value() (#3867)

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

huxing 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 5e77e59  Fix javadoc for Adaptive.value() (#3867)
5e77e59 is described below

commit 5e77e591dd410fdb824959c2d8025bdd6bb07000
Author: www <ru...@163.com>
AuthorDate: Wed Apr 17 09:14:58 2019 +0800

    Fix javadoc for Adaptive.value() (#3867)
---
 .../java/org/apache/dubbo/common/extension/Adaptive.java     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/extension/Adaptive.java b/dubbo-common/src/main/java/org/apache/dubbo/common/extension/Adaptive.java
index 686438e..0a9a023 100644
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/extension/Adaptive.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/extension/Adaptive.java
@@ -41,19 +41,19 @@ public @interface Adaptive {
      * If the specified parameters are not found from {@link URL}, then the default extension will be used for
      * dependency injection (specified in its interface's {@link SPI}).
      * <p>
-     * For examples, given <code>String[] {"key1", "key2"}</code>:
+     * For example, given <code>String[] {"key1", "key2"}</code>:
      * <ol>
      * <li>find parameter 'key1' in URL, use its value as the extension's name</li>
      * <li>try 'key2' for extension's name if 'key1' is not found (or its value is empty) in URL</li>
-     * <li>use default extension if 'key2' doesn't appear either</li>
+     * <li>use default extension if 'key2' doesn't exist either</li>
      * <li>otherwise, throw {@link IllegalStateException}</li>
      * </ol>
-     * If default extension's name is not give on interface's {@link SPI}, then a name is generated from interface's
+     * If the parameter names are empty, then a default parameter name is generated from interface's
      * class name with the rule: divide classname from capital char into several parts, and separate the parts with
-     * dot '.', for example: for {@code org.apache.dubbo.xxx.YyyInvokerWrapper}, its default name is
-     * <code>String[] {"yyy.invoker.wrapper"}</code>. This name will be used to search for parameter from URL.
+     * dot '.', for example, for {@code org.apache.dubbo.xxx.YyyInvokerWrapper}, the generated name is
+     * <code>String[] {"yyy.invoker.wrapper"}</code>.
      *
-     * @return parameter key names in URL
+     * @return parameter names in URL
      */
     String[] value() default {};