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

liujun 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 f99f015  change @AsyncFor annotation from TYPE to METHOD
f99f015 is described below

commit f99f0158f1206ab5cadc1dfac1b373ebee25ebbd
Author: ken.lj <[email protected]>
AuthorDate: Sat Dec 29 10:17:02 2018 +0800

    change @AsyncFor annotation from TYPE to METHOD
---
 .../src/main/java/org/apache/dubbo/common/async/support/AsyncFor.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/dubbo-common/src/main/java/org/apache/dubbo/common/async/support/AsyncFor.java
 
b/dubbo-common/src/main/java/org/apache/dubbo/common/async/support/AsyncFor.java
index 997d508..21ca9fc 100644
--- 
a/dubbo-common/src/main/java/org/apache/dubbo/common/async/support/AsyncFor.java
+++ 
b/dubbo-common/src/main/java/org/apache/dubbo/common/async/support/AsyncFor.java
@@ -24,11 +24,11 @@ import java.lang.annotation.Target;
 
 /**
  * TODO This definition should better be placed in module 'dubbo-config-api', 
but only can be done when "rpc" dependencies are removed from "dubbo-config-api"
- * If an interface is annotated with AsyncFor, it will be treated as an async 
counterpart for the sync one.
+ * If a method is annotated with AsyncFor, it will be treated as an async 
counterpart for the sync specified in value.
  */
 @Documented
 @Retention(RetentionPolicy.RUNTIME)
-@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
+@Target({ElementType.METHOD})
 public @interface AsyncFor {
 
     /**

Reply via email to