[ 
https://issues.apache.org/jira/browse/GROOVY-11294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17814327#comment-17814327
 ] 

ASF GitHub Bot commented on GROOVY-11294:
-----------------------------------------

paulk-asert closed pull request #2044: GROOVY-11294: Make generated toList() 
and toMap() methods on records return immutable collections
URL: https://github.com/apache/groovy/pull/2044




> 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)

Reply via email to