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 2020/07/14 04:51:54 UTC

[groovy] branch GROOVY_3_0_X updated: GROOVY-9644: Add java.io.File to immutable type list (closes #1314)

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

paulk pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_3_0_X by this push:
     new 5092e90  GROOVY-9644: Add java.io.File to immutable type list (closes #1314)
5092e90 is described below

commit 5092e90c03627ed078876161b9353c62c62cf779
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 (closes #1314)
---
 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() { }