groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] 01/05: deprecate antlr2 java2groovy classes
Date Fri, 18 Oct 2019 14:04:36 GMT
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 4c6f7256e2dc47f78a4825966fc2e854e8e724d3
Author: Paul King <paulk@asert.com.au>
AuthorDate: Mon Oct 14 09:57:13 2019 +1000

    deprecate antlr2 java2groovy classes
    
    if we replace, antlr4 version would be in a different package of a new optional module
    
    (cherry picked from commit bf1200311ed6de450e1c400ebf7d580affc145c8)
---
 src/main/java/org/codehaus/groovy/antlr/java/Groovifier.java             | 1 +
 src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyConverter.java   | 1 +
 src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyMain.java        | 1 +
 src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyProcessor.java   | 1 +
 .../java/org/codehaus/groovy/antlr/java/PreJava2GroovyConverter.java     | 1 +
 5 files changed, 5 insertions(+)

diff --git a/src/main/java/org/codehaus/groovy/antlr/java/Groovifier.java b/src/main/java/org/codehaus/groovy/antlr/java/Groovifier.java
index cc551fb..162c844 100644
--- a/src/main/java/org/codehaus/groovy/antlr/java/Groovifier.java
+++ b/src/main/java/org/codehaus/groovy/antlr/java/Groovifier.java
@@ -22,6 +22,7 @@ import org.codehaus.groovy.antlr.GroovySourceAST;
 import org.codehaus.groovy.antlr.parser.GroovyTokenTypes;
 import org.codehaus.groovy.antlr.treewalker.VisitorAdapter;
 
+@Deprecated
 public class Groovifier extends VisitorAdapter implements GroovyTokenTypes {
     private String currentClassName = "";
     private final boolean cleanRedundantPublic;
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 85d4a60..c8c83e3 100644
--- a/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyConverter.java
+++ b/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyConverter.java
@@ -22,6 +22,7 @@ import org.codehaus.groovy.antlr.GroovySourceAST;
 import org.codehaus.groovy.antlr.parser.GroovyTokenTypes;
 import org.codehaus.groovy.antlr.treewalker.VisitorAdapter;
 
+@Deprecated
 public class Java2GroovyConverter extends VisitorAdapter{
     private final int[] typeMapping;
 
diff --git a/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyMain.java b/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyMain.java
index 3cd02a7..96a6bd0 100644
--- a/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyMain.java
+++ b/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyMain.java
@@ -20,6 +20,7 @@ package org.codehaus.groovy.antlr.java;
 
 import java.util.Arrays;
 
+@Deprecated
 public class Java2GroovyMain {
 
     public static void main(String[] args) {
diff --git a/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyProcessor.java b/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyProcessor.java
index d6b47dd..689df7e 100644
--- a/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyProcessor.java
+++ b/src/main/java/org/codehaus/groovy/antlr/java/Java2GroovyProcessor.java
@@ -41,6 +41,7 @@ import java.io.StringReader;
 import java.util.Iterator;
 import java.util.List;
 
+@Deprecated
 public class Java2GroovyProcessor {
 
     public static void processFiles(List<String> fileNames) throws Exception {
diff --git a/src/main/java/org/codehaus/groovy/antlr/java/PreJava2GroovyConverter.java b/src/main/java/org/codehaus/groovy/antlr/java/PreJava2GroovyConverter.java
index 6c5c1e2..55467c1 100644
--- a/src/main/java/org/codehaus/groovy/antlr/java/PreJava2GroovyConverter.java
+++ b/src/main/java/org/codehaus/groovy/antlr/java/PreJava2GroovyConverter.java
@@ -24,6 +24,7 @@ import org.codehaus.groovy.antlr.treewalker.VisitorAdapter;
 import java.util.Stack;
 
 /** This class mutates the Java AST, whilst it is still a Java AST, in readiness for conversion
to Groovy, yippee-ky-a ! */
+@Deprecated
 public class PreJava2GroovyConverter extends VisitorAdapter{
     private final Stack stack;
 


Mime
View raw message