groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] 03/04: Improve back-compatibility
Date Fri, 20 Dec 2019 17:36:14 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 174925e7c368c705045090b718d080f1584e3ffe
Author: Daniel Sun <sunlan@apache.org>
AuthorDate: Sat Dec 21 00:21:23 2019 +0800

    Improve back-compatibility
    
    (cherry picked from commit 3b99603f0c91bd571ff3f10256dfb979d6ce48ce)
---
 src/main/java/org/codehaus/groovy/control/CompilationUnit.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main/java/org/codehaus/groovy/control/CompilationUnit.java b/src/main/java/org/codehaus/groovy/control/CompilationUnit.java
index c33846d..eb75133 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilationUnit.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilationUnit.java
@@ -1058,6 +1058,10 @@ public class CompilationUnit extends ProcessingUnit {
     }
 
     //--------------------------------------------------------------------------
+    @Deprecated // IntelliJ IDEA depends on the API
+    public void applyToPrimaryClassNodes(final PrimaryClassNodeOperation op) throws CompilationFailedException
{
+        op.doPhaseOperation(this);
+    }
 
     @Deprecated
     public void addPhaseOperation(final GroovyClassOperation op) {


Mime
View raw message