groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Revert "Make bytecode generation loggable"
Date Wed, 21 Jun 2017 00:30:05 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X ab5bfcf45 -> 9f435663b


Revert "Make bytecode generation loggable"


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

Branch: refs/heads/GROOVY_2_4_X
Commit: 9f435663b0c9572b49439d526ff81ff5621f1d95
Parents: ab5bfcf
Author: sunlan <sunlan@apache.org>
Authored: Wed Jun 21 08:29:58 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Wed Jun 21 08:29:58 2017 +0800

----------------------------------------------------------------------
 src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java    | 2 +-
 src/main/org/codehaus/groovy/classgen/asm/WriterController.java | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/9f435663/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java b/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java
index 5ac7495..aa88288 100644
--- a/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java
+++ b/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java
@@ -165,7 +165,7 @@ public class AsmClassGenerator extends ClassGenerator {
     //-------------------------------------------------------------------------
     public void visitClass(ClassNode classNode) {
         referencedClasses.clear();
-        WriterControllerFactory factory = (WriterControllerFactory) classNode.getNodeMetaData(WriterControllerFactory.class);
+        WriterControllerFactory factory = classNode.getNodeMetaData(WriterControllerFactory.class);
         WriterController normalController = new WriterController();
         if (factory!=null) {
             this.controller = factory.makeController(normalController);

http://git-wip-us.apache.org/repos/asf/groovy/blob/9f435663/src/main/org/codehaus/groovy/classgen/asm/WriterController.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/classgen/asm/WriterController.java b/src/main/org/codehaus/groovy/classgen/asm/WriterController.java
index 6856c07..989d660 100644
--- a/src/main/org/codehaus/groovy/classgen/asm/WriterController.java
+++ b/src/main/org/codehaus/groovy/classgen/asm/WriterController.java
@@ -56,6 +56,7 @@ public class WriterController {
             indyBinHelper = null;
         }
     }
+
     private AsmClassGenerator acg;
     private MethodVisitor methodVisitor;
     private CompileStack compileStack;


Mime
View raw message