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

Replace anonymous class creation with lambdas in ConstructorConstructor #2763

Conversation

panic08
Copy link
Contributor

@panic08 panic08 commented Oct 16, 2024

I think we should change the complete creation of anonymous classes to lambdas, which will reduce the amount of code and make it more readable

Since we recently got Java 8 support, we can afford to use lambdas

@panic08
Copy link
Contributor Author

panic08 commented Oct 16, 2024

Hmm, I noticed odd that the Build / GraalVM Native Image test (pull_request) job crashes with text:

Run graalvm/setup-graalvm@22cc13fe88ef133134b3798e128fb208df55e1f5
Error: Failed to download graalvm-jdk-17_linux-x64_bin.tar.gz. Are you sure java-version: '17' is correct?

I assume it's not related to the change?

@Marcono1234
Copy link
Collaborator

Hmm, I noticed odd that the Build / GraalVM Native Image test (pull_request) job crashes with text

Seems to be a bug with that GitHub action; I have created #2764 to update it a fixed version. Once that is merged you can merge main into your branch and the build should succeed again.

Copy link
Collaborator

@Marcono1234 Marcono1234 left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! I have one small suggestion, see review comment.

Though @eamonnmcmanus might have additional suggestions or requests for changes.

@panic08 panic08 force-pushed the replace-anonymous-class-creation-with-lambdas-in-ConstructorConstructor branch from 30ba3be to 56217ed Compare October 16, 2024 20:25
Replace anonymous class creation with lambdas in ConstructorConstructor

Replace anonymous class creation with lambdas in ConstructorConstructor

Replace anonymous class creation with lambdas in ConstructorConstructor
@panic08 panic08 force-pushed the replace-anonymous-class-creation-with-lambdas-in-ConstructorConstructor branch from 56217ed to a022037 Compare October 16, 2024 20:37
@eamonnmcmanus eamonnmcmanus merged commit 2dc29f7 into google:main Oct 18, 2024
11 checks passed
@panic08 panic08 deleted the replace-anonymous-class-creation-with-lambdas-in-ConstructorConstructor branch October 18, 2024 14:50
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