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 2022/04/28 23:09:51 UTC
[groovy] branch GROOVY_4_0_X updated (ceaa99cedc -> a34ab60a39)
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a change to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
from ceaa99cedc GROOVY-10599: STC: support spread list elements: `['a',*letters(),'z']`
new 90b8d7310e GROOVY-10609: The default equals and hashCode implementations for emulated records don't have the pojo flag set for generation
new a34ab60a39 GROOVY-10608: The default toString for emulated records has caching enabled
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../codehaus/groovy/transform/RecordTypeASTTransformation.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
[groovy] 01/02: GROOVY-10609: The default equals and hashCode implementations for emulated records don't have the pojo flag set for generation
Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 90b8d7310eec6e9797ab635b3797000bf0da0460
Author: Paul King <pa...@asert.com.au>
AuthorDate: Fri Apr 29 09:09:01 2022 +1000
GROOVY-10609: The default equals and hashCode implementations for emulated records don't have the pojo flag set for generation
---
.../org/codehaus/groovy/transform/RecordTypeASTTransformation.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/codehaus/groovy/transform/RecordTypeASTTransformation.java b/src/main/java/org/codehaus/groovy/transform/RecordTypeASTTransformation.java
index e1bf2313c2..a4feebbdcd 100644
--- a/src/main/java/org/codehaus/groovy/transform/RecordTypeASTTransformation.java
+++ b/src/main/java/org/codehaus/groovy/transform/RecordTypeASTTransformation.java
@@ -207,7 +207,7 @@ public class RecordTypeASTTransformation extends AbstractASTTransformation imple
} else {
ToStringASTTransformation.createToString(cNode, false, false, null,
null, true, false, false, true,
- false, false, false, false, false,
+ false, false, false, false, true,
new String[]{"[", "]", "=", ", "});
}
}
@@ -217,8 +217,8 @@ public class RecordTypeASTTransformation extends AbstractASTTransformation imple
createRecordEquals(cNode);
createRecordHashCode(cNode);
} else {
- EqualsAndHashCodeASTTransformation.createEquals(cNode, false, false, false, null, null);
- EqualsAndHashCodeASTTransformation.createHashCode(cNode, false, false, false, null, null);
+ EqualsAndHashCodeASTTransformation.createEquals(cNode, false, false, false, null, null, false, false, true);
+ EqualsAndHashCodeASTTransformation.createHashCode(cNode, false, false, false, null, null, false, false, true);
}
}
[groovy] 02/02: GROOVY-10608: The default toString for emulated records has caching enabled
Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit a34ab60a39efbfff5240d7c9f0632faee149a622
Author: Paul King <pa...@asert.com.au>
AuthorDate: Fri Apr 29 09:09:42 2022 +1000
GROOVY-10608: The default toString for emulated records has caching enabled
---
.../java/org/codehaus/groovy/transform/RecordTypeASTTransformation.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/transform/RecordTypeASTTransformation.java b/src/main/java/org/codehaus/groovy/transform/RecordTypeASTTransformation.java
index a4feebbdcd..387c8c36ec 100644
--- a/src/main/java/org/codehaus/groovy/transform/RecordTypeASTTransformation.java
+++ b/src/main/java/org/codehaus/groovy/transform/RecordTypeASTTransformation.java
@@ -206,7 +206,7 @@ public class RecordTypeASTTransformation extends AbstractASTTransformation imple
createRecordToString(cNode);
} else {
ToStringASTTransformation.createToString(cNode, false, false, null,
- null, true, false, false, true,
+ null, true, false, false, false,
false, false, false, false, true,
new String[]{"[", "]", "=", ", "});
}