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

Extract trait interface for annotatable constructs and their builders #1564

Merged
merged 1 commit into from
May 24, 2023

Conversation

JakeWharton
Copy link
Collaborator

Part of #1553

public fun addAnnotation(annotationSpec: AnnotationSpec): Builder = apply {
override fun addAnnotation(annotationSpec: AnnotationSpec): Builder = apply {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This override can be bypassed by mutating the collection directly. Should probably move the validation to the builder, but that's a separate issue.

@JakeWharton JakeWharton force-pushed the jw.annotatable.2023-05-23 branch from d65e5cd to 422e62b Compare May 23, 2023 18:18
Copy link
Collaborator

@ZacSweers ZacSweers left a comment

Choose a reason for hiding this comment

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

Nice

Base automatically changed from jw.default.2023-05-23 to master May 24, 2023 16:01
@JakeWharton JakeWharton force-pushed the jw.annotatable.2023-05-23 branch from 422e62b to 3957307 Compare May 24, 2023 16:06
@JakeWharton JakeWharton merged commit e020ac1 into master May 24, 2023
@JakeWharton JakeWharton deleted the jw.annotatable.2023-05-23 branch May 24, 2023 16:14
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.

3 participants