Skip to content

fix: derived properties return unmodifiable collections#1923

Merged
surli merged 1 commit intoINRIA:masterfrom
pvojtechovsky:fixReadOnlyDerived
Mar 20, 2018
Merged

fix: derived properties return unmodifiable collections#1923
surli merged 1 commit intoINRIA:masterfrom
pvojtechovsky:fixReadOnlyDerived

Conversation

@pvojtechovsky
Copy link
Copy Markdown
Collaborator

As discussed in #1917 and detected by #1922, this PR fixes all main derived properties of Spoon model by way they return unmodifiable collections.

Before they were modifiable, but detached. So the modifications had no influence to the model. Now they are unmodifiable, so client is warn early that modifications makes no sense here.

@surli
Copy link
Copy Markdown
Collaborator

surli commented Mar 20, 2018

I mark this one as breaking as it can be a breaking behaviour in some clients. We'll be able to notice it easily in the changelog then. Thanks @pvojtechovsky !

@surli surli merged commit acc242b into INRIA:master Mar 20, 2018
@surli surli mentioned this pull request Jun 25, 2018
@pvojtechovsky pvojtechovsky deleted the fixReadOnlyDerived branch September 1, 2018 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants