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 2015/11/04 18:58:30 UTC

incubator-groovy git commit: GROOVY-7660: gradle/utils.gradle: Remove unused imports and unused variables. Fully specify ASM Opscodes instead of importing the whole namespace. (closes #178)

Repository: incubator-groovy
Updated Branches:
  refs/heads/master 4c4ead4ac -> d1d0922e3


GROOVY-7660: gradle/utils.gradle: Remove unused imports and unused variables. Fully specify ASM Opscodes instead of importing the whole namespace. (closes #178)

Signed-off-by: Patrice Clement <mo...@gentoo.org>


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

Branch: refs/heads/master
Commit: d1d0922e3eacf83a5369258404b72ed321bd8a0c
Parents: 4c4ead4
Author: Patrice Clement <mo...@gentoo.org>
Authored: Wed Nov 4 15:59:45 2015 +0000
Committer: pascalschumacher <pa...@gmx.net>
Committed: Wed Nov 4 18:57:39 2015 +0100

----------------------------------------------------------------------
 gradle/utils.gradle | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/d1d0922e/gradle/utils.gradle
----------------------------------------------------------------------
diff --git a/gradle/utils.gradle b/gradle/utils.gradle
index 4a6fa9b..b485933 100644
--- a/gradle/utils.gradle
+++ b/gradle/utils.gradle
@@ -17,13 +17,18 @@
  *  under the License.
  */
 
-import org.codehaus.groovy.classgen.AnnotationVisitor
+import org.objectweb.asm.MethodVisitor
 import org.objectweb.asm.ClassWriter
-import org.objectweb.asm.FieldVisitor
 import org.objectweb.asm.Label
-import org.objectweb.asm.MethodVisitor
 
-import static org.objectweb.asm.Opcodes.*
+import static org.objectweb.asm.Opcodes.ACC_PUBLIC
+import static org.objectweb.asm.Opcodes.ACC_STATIC
+import static org.objectweb.asm.Opcodes.ACC_SUPER
+import static org.objectweb.asm.Opcodes.ALOAD
+import static org.objectweb.asm.Opcodes.ATHROW
+import static org.objectweb.asm.Opcodes.INVOKESPECIAL
+import static org.objectweb.asm.Opcodes.RETURN
+import static org.objectweb.asm.Opcodes.V1_5
 
 buildscript {
     repositories {
@@ -45,9 +50,7 @@ task exceptionUtils {
 
     doLast {
         ClassWriter cw = new ClassWriter(0);
-        FieldVisitor fv;
         MethodVisitor mv;
-        AnnotationVisitor av0;
 
         cw.visit(V1_5, ACC_PUBLIC + ACC_SUPER, 'org/codehaus/groovy/runtime/ExceptionUtils', null, 'java/lang/Object', null);