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

Annotate Platform with @KnownImmutable #41

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

PaintNinja
Copy link
Member

This offers a guarantee to the Groovy compiler that Platform is known to be immutable and to treat it as such

Copy link
Member

@lukebemish lukebemish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Erm, not so sure on this -- @KnownImmutable is runtime retention, which means the compile-only dep there actually leaks to runtime. Does groovy have any other ways of marking this we could use? I'll poke it. You've mentioned making it a record before and that may in the end by the most sensible option, though we'll have to scour for identity equality uses and make them non-identity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants