[ https://issues.apache.org/jira/browse/CAUSEWAY-3821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Huber closed CAUSEWAY-3821. -------------------------------- > [Commons] Can<T> fix inconsistent API > ------------------------------------- > > Key: CAUSEWAY-3821 > URL: https://issues.apache.org/jira/browse/CAUSEWAY-3821 > Project: Causeway > Issue Type: Improvement > Components: Commons > Reporter: Andi Huber > Assignee: Andi Huber > Priority: Major > Fix For: 2.2.0, 3.2.0 > > > {code:java} > Can<T>.toList() > {code} > returns an unmodifiable List, as does the Stream API. > However > {code:java} > Can<T>.toMap() > {code} > returns a modifiable Map. This needs to be fixed. (Unfortunately that's a > breaking change) -- This message was sent by Atlassian Jira (v8.20.10#820010)