You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by pa...@apache.org on 2015/06/04 02:22:13 UTC

incubator-groovy git commit: GROOVY-7453: CompileStatic annotation should not support package target

Repository: incubator-groovy
Updated Branches:
  refs/heads/master 37a8cbde9 -> a4eca0fd5


GROOVY-7453: CompileStatic annotation should not support package target


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/a4eca0fd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/a4eca0fd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/a4eca0fd

Branch: refs/heads/master
Commit: a4eca0fd5b7103cd83df6f74ace63962edf434ca
Parents: 37a8cbd
Author: Paul King <pa...@asert.com.au>
Authored: Thu Jun 4 10:21:15 2015 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Thu Jun 4 10:22:06 2015 +1000

----------------------------------------------------------------------
 src/main/groovy/transform/CompileStatic.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/a4eca0fd/src/main/groovy/transform/CompileStatic.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/transform/CompileStatic.java b/src/main/groovy/transform/CompileStatic.java
index 1825d49..2f1f369 100644
--- a/src/main/groovy/transform/CompileStatic.java
+++ b/src/main/groovy/transform/CompileStatic.java
@@ -44,8 +44,7 @@ import java.lang.annotation.*;
 @Documented
 @Retention(RetentionPolicy.SOURCE)
 @Target({   ElementType.METHOD,         ElementType.TYPE,
-            ElementType.CONSTRUCTOR,    ElementType.FIELD,
-            ElementType.LOCAL_VARIABLE, ElementType.PACKAGE
+            ElementType.CONSTRUCTOR
 })
 @GroovyASTTransformationClass("org.codehaus.groovy.transform.sc.StaticCompileTransformation")
 public @interface CompileStatic {