[incubator-dubbo-website] branch asf-site updated: method spelling error (#339)

2019-03-24 Thread lixiaojie
This is an automated email from the ASF dual-hosted git repository.

lixiaojie pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
 new 569d29d  method spelling error (#339)
569d29d is described below

commit 569d29dac67a96393bfe220f5e77b12cfd53f407
Author: huazhongming 
AuthorDate: Mon Mar 25 10:39:07 2019 +0800

method spelling error (#339)
---
 docs/zh-cn/user/references/xml/dubbo-method.md | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/docs/zh-cn/user/references/xml/dubbo-method.md 
b/docs/zh-cn/user/references/xml/dubbo-method.md
index 487e08d..4f29d02 100644
--- a/docs/zh-cn/user/references/xml/dubbo-method.md
+++ b/docs/zh-cn/user/references/xml/dubbo-method.md
@@ -49,13 +49,13 @@ table tr:hover {
 | 属性 | 对应URL参数 | 类型 | 是否必填 | 缺省值 | 作用 | 描述 | 兼容性 |
 | --- | --- |  | --- | --- | --- | --- | --- |
 | name | | string | 必填 | | 标识 | 方法名 | 1.0.8以上版本 |
-| timeout | .timeout | int | 可选 | 缺省为的timeout | 性能调优 | 
方法调用超时时间(毫秒) | 1.0.8以上版本 |
-| retries | .retries | int | 可选 | 
缺省为的retries | 性能调优 | 远程服务调用重试次数,不包括第一次调用,不需要重试请设为0 | 
2.0.0以上版本 |
-| loadbalance | .loadbalance | string | 可选 | 缺省为的loadbalance 
| 性能调优 | 负载均衡策略,可选值:random,roundrobin,leastactive,分别表示:随机,轮询,最少活跃调用 | 2.0.0以上版本 
|
-| async | .async | boolean | 可选 | 
缺省为的async | 性能调优 | 是否异步执行,不可靠异步,只是忽略返回值,不阻塞执行线程 | 
1.0.9以上版本 |
+| timeout | .timeout | int | 可选 | 缺省为的timeout | 性能调优 | 
方法调用超时时间(毫秒) | 1.0.8以上版本 |
+| retries | .retries | int | 可选 | 
缺省为的retries | 性能调优 | 远程服务调用重试次数,不包括第一次调用,不需要重试请设为0 | 
2.0.0以上版本 |
+| loadbalance | .loadbalance | string | 可选 | 缺省为的loadbalance 
| 性能调优 | 负载均衡策略,可选值:random,roundrobin,leastactive,分别表示:随机,轮询,最少活跃调用 | 2.0.0以上版本 
|
+| async | .async | boolean | 可选 | 
缺省为的async | 性能调优 | 是否异步执行,不可靠异步,只是忽略返回值,不阻塞执行线程 | 
1.0.9以上版本 |
 | sent | .sent | boolean | 可选 | true | 性能调优 | 
异步调用时,标记sent=true时,表示网络已发出数据 | 2.0.6以上版本 |
-| actives | .actives | int | 可选 | 0 | 性能调优 | 每服务消费者最大并发调用限制 | 
2.0.5以上版本 |
-| executes | .executes | int | 可选 | 0 | 性能调优 | 
每服务每方法最大使用线程数限制- 
-,此属性只在作为子标签时有效 | 2.0.5以上版本 |
+| actives | .actives | int | 可选 | 0 | 性能调优 | 每服务消费者最大并发调用限制 
| 2.0.5以上版本 |
+| executes | .executes | int | 可选 | 0 | 性能调优 | 
每服务每方法最大使用线程数限制- 
-,此属性只在作为子标签时有效 | 2.0.5以上版本 |
 | deprecated | .deprecated | boolean | 可选 | false | 服务治理 | 
服务方法是否过时,此属性只在作为子标签时有效 | 2.0.5以上版本 |
 | sticky | .sticky | boolean | 可选 | false | 服务治理 | 设置true 
该接口上的所有方法使用同一个provider.如果需要更复杂的规则,请使用用路由 | 2.0.6以上版本 |
 | return | .return | boolean | 可选 | true | 性能调优 | 
方法调用是否需要返回值,async设置为true时才生效,如果设置为true,则返回future,或回调onreturn等方法,如果设置为false,则请求发送成功后直接返回Null
 | 2.0.6以上版本 |



[incubator-dubbo] branch master updated: Unit test of JValidator; Clean code of JValidator (#3723)

2019-03-24 Thread lixiaojie
This is an automated email from the ASF dual-hosted git repository.

lixiaojie 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 c1be6c6  Unit test of JValidator; Clean code of JValidator (#3723)
c1be6c6 is described below

commit c1be6c61605c76c7656bde921b2a3505ebd8db1e
Author: Taosheng Wei 
AuthorDate: Mon Mar 25 10:44:39 2019 +0800

Unit test of JValidator; Clean code of JValidator (#3723)
---
 .../validation/support/jvalidation/JValidator.java | 12 +-
 .../support/jvalidation/JValidatorTest.java| 27 ++
 .../jvalidation/mock/JValidatorTestTarget.java |  8 +++
 3 files changed, 41 insertions(+), 6 deletions(-)

diff --git 
a/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java
 
b/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java
index 9feccb2..735b37d 100644
--- 
a/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java
+++ 
b/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java
@@ -94,7 +94,7 @@ public class JValidator implements Validator {
 factory = Validation.buildDefaultValidatorFactory();
 }
 this.validator = factory.getValidator();
-this.methodClassMap = new ConcurrentHashMap();
+this.methodClassMap = new ConcurrentHashMap<>();
 }
 
 private static boolean isPrimitives(Class cls) {
@@ -117,7 +117,7 @@ public class JValidator implements Validator {
 String parameterClassName = 
generateMethodParameterClassName(clazz, method);
 Class parameterClass;
 try {
-parameterClass = (Class) Class.forName(parameterClassName, 
true, clazz.getClassLoader());
+parameterClass = Class.forName(parameterClassName, true, 
clazz.getClassLoader());
 } catch (ClassNotFoundException e) {
 ClassPool pool = 
ClassGenerator.getClassPool(clazz.getClassLoader());
 CtClass ctClass = pool.makeClass(parameterClassName);
@@ -243,14 +243,14 @@ public class JValidator implements Validator {
 
 @Override
 public void validate(String methodName, Class[] parameterTypes, 
Object[] arguments) throws Exception {
-List> groups = new ArrayList>();
+List> groups = new ArrayList<>();
 Class methodClass = methodClass(methodName);
 if (methodClass != null) {
 groups.add(methodClass);
 }
-Set> violations = new 
HashSet>();
+Set> violations = new HashSet<>();
 Method method = clazz.getMethod(methodName, parameterTypes);
-Class[] methodClasses = null;
+Class[] methodClasses;
 if (method.isAnnotationPresent(MethodValidated.class)){
 methodClasses = 
method.getAnnotation(MethodValidated.class).value();
 groups.addAll(Arrays.asList(methodClasses));
@@ -260,7 +260,7 @@ public class JValidator implements Validator {
 groups.add(1, clazz);
 
 // convert list to array
-Class[] classgroups = groups.toArray(new Class[0]);
+Class[] classgroups = groups.toArray(new Class[groups.size()]);
 
 Object parameterBean = getMethodParameterBean(clazz, method, 
arguments);
 if (parameterBean != null) {
diff --git 
a/dubbo-filter/dubbo-filter-validation/src/test/java/org/apache/dubbo/validation/support/jvalidation/JValidatorTest.java
 
b/dubbo-filter/dubbo-filter-validation/src/test/java/org/apache/dubbo/validation/support/jvalidation/JValidatorTest.java
index a45ea96..94768d2 100644
--- 
a/dubbo-filter/dubbo-filter-validation/src/test/java/org/apache/dubbo/validation/support/jvalidation/JValidatorTest.java
+++ 
b/dubbo-filter/dubbo-filter-validation/src/test/java/org/apache/dubbo/validation/support/jvalidation/JValidatorTest.java
@@ -23,6 +23,10 @@ import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
 
 import javax.validation.ConstraintViolationException;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
 
 public class JValidatorTest {
 @Test
@@ -56,4 +60,27 @@ public class JValidatorTest {
 JValidator jValidator = new JValidator(url);
 jValidator.validate("someMethod2", new 
Class[]{ValidationParameter.class}, new Object[]{new 
ValidationParameter("NotBeNull")});
 }
+
+@Test
+public void testItWithArrayArg() throws Exception {
+URL url = 
URL.valueOf("test://test:11/org.apache.dubbo.validation.support.jvalidation.mock.JValidatorTestTarget");
+JValidator jValidator = new JValidator(url);
+jValidator.validate("someMethod3", new 
Class[]{ValidationParameter[].class}, new Object[

[incubator-dubbo-website] branch asf-site updated: Add new committer to developer page (#342)

2019-03-24 Thread kezhenxu94
This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
 new 860ea38  Add new committer to developer page (#342)
860ea38 is described below

commit 860ea387e5522baeb31a2a7b7e70ada40d78ac0a
Author: xujingfeng <250577...@qq.com>
AuthorDate: Mon Mar 25 11:51:42 2019 +0800

Add new committer to developer page (#342)
---
 docs/en-us/developers/developers_dev.md | 1 +
 docs/zh-cn/developers/developers_dev.md | 1 +
 2 files changed, 2 insertions(+)

diff --git a/docs/en-us/developers/developers_dev.md 
b/docs/en-us/developers/developers_dev.md
index 07dec42..ace32ab 100644
--- a/docs/en-us/developers/developers_dev.md
+++ b/docs/en-us/developers/developers_dev.md
@@ -39,6 +39,7 @@ This page shows Dubbo developers. Please file PR to add or 
change items.
 | biyuhao | Yuhao Bi| Asiainfo-sec | Committer | +8
   |
 | crazyhzm| Zhongming Hua   | iFlytek  | Committer | +8
   |
 | kezhenxu94  | Zhenxu Ke   |  | Committer | +8
   |
+| lexburner   | Jingfeng Xu | Alibaba  | Committer | +8
   |
 
 ### Contributors
 
diff --git a/docs/zh-cn/developers/developers_dev.md 
b/docs/zh-cn/developers/developers_dev.md
index 2df5d83..6513b4f 100644
--- a/docs/zh-cn/developers/developers_dev.md
+++ b/docs/zh-cn/developers/developers_dev.md
@@ -39,6 +39,7 @@
 | biyuhao | Yuhao Bi| Asiainfo-sec | Committer | +8
   |
 | crazyhzm| Zhongming Hua   | iFlytek  | Committer | +8
   |
 | kezhenxu94  | Zhenxu Ke   |  | Committer | +8
   |
+| lexburner   | Jingfeng Xu | Alibaba  | Committer | +8
   |
 
 ### 贡献者
 



[incubator-dubbo-website] branch asf-site updated: Fix spelling mistakes (#341)

2019-03-24 Thread kexianjun
This is an automated email from the ASF dual-hosted git repository.

kexianjun pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
 new f3df88f  Fix spelling mistakes (#341)
f3df88f is described below

commit f3df88f13831c8c3307d3f7ed3fe693ff2bbfd60
Author: Jlcao 
AuthorDate: Mon Mar 25 12:27:18 2019 +0800

Fix spelling mistakes (#341)

Fix spelling mistakes.
---
 docs/zh-cn/user/configuration/configuration-load-process.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/zh-cn/user/configuration/configuration-load-process.md 
b/docs/zh-cn/user/configuration/configuration-load-process.md
index 70645e6..dbdb278 100644
--- a/docs/zh-cn/user/configuration/configuration-load-process.md
+++ b/docs/zh-cn/user/configuration/configuration-load-process.md
@@ -54,7 +54,7 @@ dubbo.protocol.port=-1
 
 ```properties
 dubbo.service.org.apache.dubbo.samples.api.DemoService.timeout=5000
-dubbo.reference.org.apache.dubbo.samples.api.DemoService.tineout=6000
+dubbo.reference.org.apache.dubbo.samples.api.DemoService.timeout=6000
 dubbo.reference.org.apache.dubbo.samples.api.DemoService.sayHello.timeout=7000
 ```
 



[incubator-dubbo-website] branch asf-site updated (f3df88f -> acc0f6d)

2019-03-24 Thread purpleforce
This is an automated email from the ASF dual-hosted git repository.

purpleforce pushed a change to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git.


from f3df88f  Fix spelling mistakes (#341)
 new 8629874  feat: 主题色调整,增加start,fork相关信息
 new acc0f6d  feat: buid

The 575 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 build/blog.css |   6 +-
 build/blog.js  |   2 +-
 build/blogDetail.css   |   4 +-
 build/blogDetail.js|   2 +-
 build/community.css|   8 +-
 build/community.js |   2 +-
 build/documentation.css|  10 +-
 build/documentation.js |   2 +-
 build/home.css |  40 -
 build/home.js  |   4 +-
 en-us/blog/download.html   |   4 +-
 en-us/blog/download.json   |   2 +-
 en-us/docs/admin/README.html   |   2 +-
 en-us/docs/admin/README.json   |   2 +-
 en-us/docs/admin/SUMMARY.html  |   2 +-
 en-us/docs/admin/SUMMARY.json  |   2 +-
 en-us/docs/admin/install/admin-console.html|   6 +-
 en-us/docs/admin/install/admin-console.json|   2 +-
 en-us/docs/admin/introduction.html |   8 +-
 en-us/docs/admin/introduction.json |   2 +-
 en-us/docs/admin/serviceGovernance.html|   2 +-
 en-us/docs/admin/serviceGovernance.json|   2 +-
 en-us/docs/developers/developers_dev.html  |   7 +
 en-us/docs/developers/developers_dev.json  |   2 +-
 en-us/docs/developers/user-guide/faq_dev.html  |   2 +-
 en-us/docs/developers/user-guide/faq_dev.json  |   2 +-
 en-us/index.html   |   2 +-
 md_json/blog.json  |   9 +
 src/components/button/index.scss   |   3 +-
 src/pages/home/index.jsx   |  28 ++-
 src/pages/home/index.scss  |  29 +++
 src/variables.scss |   6 +-
 zh-cn/blog/download.html   |   4 +-
 zh-cn/blog/download.json   |   2 +-
 zh-cn/blog/dubbo-27-features.html  | 197 +
 zh-cn/blog/dubbo-27-features.json  |  10 ++
 zh-cn/blog/index.html  |   2 +-
 zh-cn/docs/admin/README.html   |   2 +-
 zh-cn/docs/admin/README.json   |   2 +-
 zh-cn/docs/admin/SUMMARY.html  |   2 +-
 zh-cn/docs/admin/SUMMARY.json  |   2 +-
 zh-cn/docs/admin/install/admin-console.html|   6 +-
 zh-cn/docs/admin/install/admin-console.json|   2 +-
 zh-cn/docs/admin/introduction.html |   6 +-
 zh-cn/docs/admin/introduction.json |   2 +-
 zh-cn/docs/developers/developers_dev.html  |   7 +
 zh-cn/docs/developers/developers_dev.json  |   2 +-
 zh-cn/docs/developers/user-guide/faq_dev.html  |   2 +-
 zh-cn/docs/developers/user-guide/faq_dev.json  |   2 +-
 .../configuration/configuration-load-process.html  |   2 +-
 .../configuration/configuration-load-process.json  |   2 +-
 zh-cn/docs/user/demos/routing-rule.html|   2 +-
 zh-cn/docs/user/demos/routing-rule.json|   2 +-
 zh-cn/docs/user/recommend.html |   4 +-
 zh-cn/docs/user/recommend.json |   2 +-
 zh-cn/docs/user/references/xml/dubbo-method.html   |  12 +-
 zh-cn/docs/user/references/xml/dubbo-method.json   |   2 +-
 zh-cn/index.html   |   2 +-
 58 files changed, 398 insertions(+), 90 deletions(-)
 create mode 100644 zh-cn/blog/dubbo-27-features.html
 create mode 100644 zh-cn/blog/dubbo-27-features.json