This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_4_0_X by this push:
new 4722285251 Add `Pattern` to builtin immutables list
4722285251 is described below
commit 472228525185592d8d41981ef06ca18f851cf91c
Author: Daniel Sun <[email protected]>
AuthorDate: Sun Dec 8 13:51:04 2024 +0800
Add `Pattern` to builtin immutables list
(cherry picked from commit a96c76e29642a43174dd89573cd26a1381642cab)
---
src/main/java/org/apache/groovy/ast/tools/ImmutablePropertyUtils.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/src/main/java/org/apache/groovy/ast/tools/ImmutablePropertyUtils.java
b/src/main/java/org/apache/groovy/ast/tools/ImmutablePropertyUtils.java
index 646ec044c9..0b4b002c34 100644
--- a/src/main/java/org/apache/groovy/ast/tools/ImmutablePropertyUtils.java
+++ b/src/main/java/org/apache/groovy/ast/tools/ImmutablePropertyUtils.java
@@ -88,6 +88,7 @@ public class ImmutablePropertyUtils {
"java.awt.Color",
"java.net.URI",
"java.util.UUID",
+ "java.util.regex.Pattern",
"java.time.DayOfWeek",
"java.time.Duration",
"java.time.Instant",