You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/02/05 11:36:00 UTC
[jira] [Commented] (GROOVY-11294) Make generated toList() and toMap() methods on records return immutable collections
[ https://issues.apache.org/jira/browse/GROOVY-11294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17814326#comment-17814326 ]
ASF GitHub Bot commented on GROOVY-11294:
-----------------------------------------
paulk-asert merged PR #2047:
URL: https://github.com/apache/groovy/pull/2047
> Make generated toList() and toMap() methods on records return immutable collections
> -----------------------------------------------------------------------------------
>
> Key: GROOVY-11294
> URL: https://issues.apache.org/jira/browse/GROOVY-11294
> Project: Groovy
> Issue Type: Improvement
> Components: record
> Affects Versions: 5.x
> Reporter: Oscar N
> Priority: Minor
>
> With records having strong immutability guarantees, I believe it would make sense to also have the collections returned by `toList()` and `toMap()` be immutable as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)