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

Use one subtype per platform for simplicity #3618

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

JakeWharton
Copy link
Collaborator

This also allows trivial introduction of Java 16's new invokeDefault.

Closes #3535.

Trades duplicated code for simplicity. No inheritance and conditional logic dramatically simplifies understand how each platform behaves.

This also allows trivial introduction of Java 16's new invokeDefault.
Copy link
Member

@swankjesse swankjesse left a comment

Choose a reason for hiding this comment

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

Yeah, I like this better.

@swankjesse swankjesse merged commit af55996 into master Sep 20, 2021
@swankjesse swankjesse deleted the jw/platform/2021-08-17 branch September 20, 2021 15: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.

Use Java 16-supported default method invocation mechanism
3 participants