groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Cleanup code
Date Mon, 13 Nov 2017 14:49:40 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X a0c2ca5fd -> 590a83911


Cleanup code

(cherry picked from commit 7481b0a)


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

Branch: refs/heads/GROOVY_2_6_X
Commit: 590a83911a0691126fffa6be1938f1f04232112c
Parents: a0c2ca5
Author: sunlan <sunlan@apache.org>
Authored: Mon Nov 13 22:45:51 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Mon Nov 13 22:49:04 2017 +0800

----------------------------------------------------------------------
 .../java/org/apache/groovy/parser/antlr4/Antlr4ParserPlugin.java | 2 +-
 .../main/java/org/apache/groovy/parser/antlr4/AstBuilder.java    | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/590a8391/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/Antlr4ParserPlugin.java
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/Antlr4ParserPlugin.java
b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/Antlr4ParserPlugin.java
index 2a445d0..25131bf 100644
--- a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/Antlr4ParserPlugin.java
+++ b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/Antlr4ParserPlugin.java
@@ -67,7 +67,7 @@ public class Antlr4ParserPlugin implements ParserPlugin {
             sourceUnit.setSource(this.readerSource);
         }
 
-        AstBuilder builder = new AstBuilder(sourceUnit, classLoader);
+        AstBuilder builder = new AstBuilder(sourceUnit);
 
         return builder.buildAST();
     }

http://git-wip-us.apache.org/repos/asf/groovy/blob/590a8391/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
index f176b25..872b5e9 100644
--- a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
+++ b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
@@ -146,10 +146,9 @@ import static org.codehaus.groovy.runtime.DefaultGroovyMethods.last;
  *         Created on 2016/08/14
  */
 public class AstBuilder extends GroovyParserBaseVisitor<Object> implements GroovyParserVisitor<Object>
{
-    public AstBuilder(SourceUnit sourceUnit, ClassLoader classLoader) {
+    public AstBuilder(SourceUnit sourceUnit) {
         this.sourceUnit = sourceUnit;
         this.moduleNode = new ModuleNode(sourceUnit);
-        this.classLoader = classLoader; // unused for the time being
 
         CharStream charStream = createCharStream(sourceUnit);
 
@@ -4532,7 +4531,6 @@ public class AstBuilder extends GroovyParserBaseVisitor<Object>
implements Groov
 
     private final ModuleNode moduleNode;
     private final SourceUnit sourceUnit;
-    private final ClassLoader classLoader; // Our ClassLoader, which provides information
on external types
     private final GroovyLangLexer lexer;
     private final GroovyLangParser parser;
     private final TryWithResourcesASTTransformation tryWithResourcesASTTransformation;


Mime
View raw message