groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch master updated: trivial refactor: remove redundant assignment
Date Mon, 18 Mar 2019 23:31:24 GMT
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 649d9d0  trivial refactor: remove redundant assignment
649d9d0 is described below

commit 649d9d017da78ad33bd5e5e13393d72fe09893ab
Author: Paul King <paulk@asert.com.au>
AuthorDate: Tue Mar 19 09:30:25 2019 +1000

    trivial refactor: remove redundant assignment
---
 src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyConverter.java | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyConverter.java b/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyConverter.java
index d200a99..85d4a60 100644
--- a/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyConverter.java
+++ b/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyConverter.java
@@ -28,7 +28,6 @@ public class Java2GroovyConverter extends VisitorAdapter{
     public Java2GroovyConverter(String[] tokenNames) {
         typeMapping = new int[400]; // magic number, much greater than current number of
java tokens
         typeMapping[JavaTokenTypes.ABSTRACT] = GroovyTokenTypes.ABSTRACT;
-
         typeMapping[JavaTokenTypes.EOF] = GroovyTokenTypes.EOF;
         typeMapping[JavaTokenTypes.NULL_TREE_LOOKAHEAD] = GroovyTokenTypes.NULL_TREE_LOOKAHEAD;
         typeMapping[JavaTokenTypes.BLOCK] = GroovyTokenTypes.BLOCK;
@@ -66,7 +65,6 @@ public class Java2GroovyConverter extends VisitorAdapter{
         typeMapping[JavaTokenTypes.FOR_ITERATOR] = GroovyTokenTypes.FOR_ITERATOR;
         typeMapping[JavaTokenTypes.EMPTY_STAT] = GroovyTokenTypes.EMPTY_STAT;
         typeMapping[JavaTokenTypes.FINAL] = GroovyTokenTypes.FINAL;
-        typeMapping[JavaTokenTypes.ABSTRACT] = GroovyTokenTypes.ABSTRACT;
         typeMapping[JavaTokenTypes.STRICTFP] = GroovyTokenTypes.STRICTFP;
         typeMapping[JavaTokenTypes.SUPER_CTOR_CALL] = GroovyTokenTypes.SUPER_CTOR_CALL;
         typeMapping[JavaTokenTypes.CTOR_CALL] = GroovyTokenTypes.CTOR_CALL;


Mime
View raw message