-
Notifications
You must be signed in to change notification settings - Fork 32
Change ImmutablesStyle's retention policy #369
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
Conversation
| @Value.Immutable | ||
| @Value.Style(visibility = Value.Style.ImplementationVisibility.PACKAGE, jdkOnly = true) | ||
| @ImmutablesStyle | ||
| @Value.Style(overshadowImplementation = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to preserve binary compat, otherwise revapi helpfully complains :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you know only this class was flagged for this and not all the others?
|
👍 |
|
Released 2.7.0 |
|
We also have an internal foundry/immutables-style repo with this class in it - would you mind making the matching change there too?? |
Before this PR
Any class that's importing an immutable class with @ImmutablesStyle in the package, or directly with
@Value.Style(visibility = Value.Style.ImplementationVisibility.PACKAGE), but doesn't add 'org.immutables.value.Value' as compile dependency will get a warning during compilationAfter this PR
==COMMIT_MSG==
Change immutablesStyle's retention policy to be SOURCE instead of CLASS, and make SerializableError use it. This avoids compilation warnings for consumers that don't depend on immutables.
==COMMIT_MSG==