You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2021/11/05 23:34:21 UTC
[groovy] branch master updated: GROOVY-10192: Smarter Closure
delegation detection in annotation parameters
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 6c84f5b GROOVY-10192: Smarter Closure delegation detection in annotation parameters
6c84f5b is described below
commit 6c84f5b071c857d85a616113a4ee1594555d74bb
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sat Nov 6 09:34:13 2021 +1000
GROOVY-10192: Smarter Closure delegation detection in annotation parameters
---
src/main/java/groovy/lang/DelegatesTo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/groovy/lang/DelegatesTo.java b/src/main/java/groovy/lang/DelegatesTo.java
index 6a7d0e4..c3c650d 100644
--- a/src/main/java/groovy/lang/DelegatesTo.java
+++ b/src/main/java/groovy/lang/DelegatesTo.java
@@ -43,7 +43,7 @@ import java.lang.annotation.Target;
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
-@Target({ElementType.PARAMETER})
+@Target({ElementType.PARAMETER, ElementType.METHOD})
public @interface DelegatesTo {
Class value() default Target.class;