Skip to content

Conversation

@jiahuijiang
Copy link
Contributor

@jiahuijiang jiahuijiang commented Oct 24, 2019

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 compilation

After 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==

@policy-bot policy-bot bot requested a review from CRogers October 24, 2019 17:04
@dansanduleac dansanduleac requested review from dansanduleac and removed request for CRogers October 24, 2019 17:18
@Value.Immutable
@Value.Style(visibility = Value.Style.ImplementationVisibility.PACKAGE, jdkOnly = true)
@ImmutablesStyle
@Value.Style(overshadowImplementation = false)
Copy link
Contributor

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 :)

Copy link
Contributor

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?

@dansanduleac
Copy link
Contributor

👍

@dansanduleac dansanduleac merged commit d77cfee into develop Oct 24, 2019
@svc-autorelease
Copy link
Collaborator

Released 2.7.0

@dansanduleac dansanduleac deleted the jj/rentention-policy branch October 24, 2019 17:24
@iamdanfox
Copy link
Contributor

We also have an internal foundry/immutables-style repo with this class in it - would you mind making the matching change there too??

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.

5 participants