You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2021/11/07 14:21:07 UTC

[groovy] branch master updated: add aliases

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 0e693bb  add aliases
0e693bb is described below

commit 0e693bb7effbc93b2f79caaf13351b706c3333fd
Author: Paul King <pa...@asert.com.au>
AuthorDate: Mon Nov 8 00:21:01 2021 +1000

    add aliases
---
 src/main/java/org/codehaus/groovy/ast/ClassNode.java | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/main/java/org/codehaus/groovy/ast/ClassNode.java b/src/main/java/org/codehaus/groovy/ast/ClassNode.java
index 5c65262..43869d6 100644
--- a/src/main/java/org/codehaus/groovy/ast/ClassNode.java
+++ b/src/main/java/org/codehaus/groovy/ast/ClassNode.java
@@ -1371,6 +1371,11 @@ public class ClassNode extends AnnotatedNode {
         return getUnresolvedSuperClass() != null && "java.lang.Record".equals(getUnresolvedSuperClass().getName());
     }
 
+    @Deprecated
+    public List<RecordComponentNode> getRecordComponentNodes() {
+        return getRecordComponents();
+    }
+
     /**
      * Get the record components of record type
      *
@@ -1384,6 +1389,11 @@ public class ClassNode extends AnnotatedNode {
         return recordComponentNodes;
     }
 
+    @Deprecated
+    public void setRecordComponentNodes(List<RecordComponentNode> recordComponentNodes) {
+        setRecordComponents(recordComponentNodes);
+    }
+
     /**
      * Set the record components for record type
      *