Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: derived properties return unmodifiable collections #1923

Merged
merged 1 commit into from
Mar 20, 2018

Conversation

pvojtechovsky
Copy link
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
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