You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/07/13 23:19:45 UTC

[groovy] 01/01: GROOVY-9644: Add java.io.File to immutable type list

This is an automated email from the ASF dual-hosted git repository.

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

commit 618a75415dcc7ed60ad9eff62af064de1dad86d6
Author: Daniel Sun <su...@apache.org>
AuthorDate: Tue Jul 14 07:18:50 2020 +0800

    GROOVY-9644: Add java.io.File to immutable type list
---
 src/main/java/org/apache/groovy/ast/tools/ImmutablePropertyUtils.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 7ee64a6..4e2bde0 100644
--- a/src/main/java/org/apache/groovy/ast/tools/ImmutablePropertyUtils.java
+++ b/src/main/java/org/apache/groovy/ast/tools/ImmutablePropertyUtils.java
@@ -115,7 +115,8 @@ public class ImmutablePropertyUtils {
             "java.time.temporal.IsoFields",
             "java.time.temporal.JulianFields",
             "java.time.temporal.ValueRange",
-            "java.time.temporal.WeekFields"
+            "java.time.temporal.WeekFields",
+            "java.io.File"
     ));
 
     private ImmutablePropertyUtils() { }