Skip to content

Commit 5e77e59

Browse files
rupertwralf0131
authored andcommitted
Fix javadoc for Adaptive.value() (#3867)
1 parent 201795b commit 5e77e59

File tree

1 file changed

+6
-6
lines changed
  • dubbo-common/src/main/java/org/apache/dubbo/common/extension

1 file changed

+6
-6
lines changed

dubbo-common/src/main/java/org/apache/dubbo/common/extension/Adaptive.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@
4141
* If the specified parameters are not found from {@link URL}, then the default extension will be used for
4242
* dependency injection (specified in its interface's {@link SPI}).
4343
* <p>
44-
* For examples, given <code>String[] {"key1", "key2"}</code>:
44+
* For example, given <code>String[] {"key1", "key2"}</code>:
4545
* <ol>
4646
* <li>find parameter 'key1' in URL, use its value as the extension's name</li>
4747
* <li>try 'key2' for extension's name if 'key1' is not found (or its value is empty) in URL</li>
48-
* <li>use default extension if 'key2' doesn't appear either</li>
48+
* <li>use default extension if 'key2' doesn't exist either</li>
4949
* <li>otherwise, throw {@link IllegalStateException}</li>
5050
* </ol>
51-
* If default extension's name is not give on interface's {@link SPI}, then a name is generated from interface's
51+
* If the parameter names are empty, then a default parameter name is generated from interface's
5252
* class name with the rule: divide classname from capital char into several parts, and separate the parts with
53-
* dot '.', for example: for {@code org.apache.dubbo.xxx.YyyInvokerWrapper}, its default name is
54-
* <code>String[] {"yyy.invoker.wrapper"}</code>. This name will be used to search for parameter from URL.
53+
* dot '.', for example, for {@code org.apache.dubbo.xxx.YyyInvokerWrapper}, the generated name is
54+
* <code>String[] {"yyy.invoker.wrapper"}</code>.
5555
*
56-
* @return parameter key names in URL
56+
* @return parameter names in URL
5757
*/
5858
String[] value() default {};
5959

0 commit comments

Comments
 (0)