-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Replace anonymous class creation with lambdas in ConstructorConstructor #2763
Conversation
Hmm, I noticed odd that the
I assume it's not related to the change? |
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 |
There was a problem hiding this 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.
gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
Outdated
Show resolved
Hide resolved
30ba3be
to
56217ed
Compare
gson/src/test/java/com/google/gson/internal/ConstructorConstructorTest.java
Outdated
Show resolved
Hide resolved
Replace anonymous class creation with lambdas in ConstructorConstructor Replace anonymous class creation with lambdas in ConstructorConstructor Replace anonymous class creation with lambdas in ConstructorConstructor
56217ed
to
a022037
Compare
…s-in-ConstructorConstructor
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