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

Should interface types used in immutable classes also need to be immutable? #7

Open
Whathecode opened this issue Aug 13, 2020 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@Whathecode
Copy link
Member

Whathecode commented Aug 13, 2020

It was pointed out to me that:

What happen if the type of a property is an interface?

When an abstract or interface type is used as a property in an immutable class, the extending classes might still contain mutable properties.

Therefore, we should likely require such types to also have the immutable annotation applied. Or, is this not a problem?

@Whathecode Whathecode added enhancement New feature or request question Further information is requested labels Aug 13, 2020
@Whathecode Whathecode changed the title Interface types used in immutable classes also need to be immutable. Should interface types used in immutable classes also need to be immutable? Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant