-
Notifications
You must be signed in to change notification settings - Fork 135
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
Rewrite lambdas to method references for instance methods #1359
Conversation
Generate changelog in
|
Nice, we should test this on a large internal project before merging. I found a lot of bugs in the original implementation that way! |
baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/LambdaMethodReference.java
Outdated
Show resolved
Hide resolved
…prone/LambdaMethodReference.java Co-authored-by: Carter Kozak <ckozak@ckozak.net>
`Optional<String>::toString` does not compile
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.
Approving pending tests in a large internal project
Everything is green. |
Needs an approval from you as well since my commits merged into this branch :-) |
woohooo 👍 |
🤖 |
Released 3.16.0 |
Before this PR
We would only re-write lambdas with zero parameters that invoked static methods to method references
After this PR
==COMMIT_MSG==
Rewrite single parameter lambdas that only invoke an zero param instance method to a method reference
==COMMIT_MSG==
Possible downsides?
N/A