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

Rewrite lambdas to method references for instance methods #1359

Merged
merged 6 commits into from
May 28, 2020

Conversation

ferozco
Copy link
Contributor

@ferozco ferozco commented May 28, 2020

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

@ferozco ferozco requested a review from carterkozak May 28, 2020 17:59
@changelog-app
Copy link

changelog-app bot commented May 28, 2020

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Rewrite single parameter lambdas that only invoke an zero param instance method to a method reference

Check the box to generate changelog(s)

  • Generate changelog entry

@carterkozak
Copy link
Contributor

Nice, we should test this on a large internal project before merging. I found a lot of bugs in the original implementation that way!

ferozco and others added 4 commits May 28, 2020 15:51
Copy link
Contributor

@carterkozak carterkozak left a 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

@carterkozak
Copy link
Contributor

Everything is green.

@carterkozak
Copy link
Contributor

Needs an approval from you as well since my commits merged into this branch :-)

@ferozco
Copy link
Contributor Author

ferozco commented May 28, 2020

woohooo 👍

@ferozco
Copy link
Contributor Author

ferozco commented May 28, 2020

🤖

@bulldozer-bot bulldozer-bot bot merged commit 94a5b79 into develop May 28, 2020
@bulldozer-bot bulldozer-bot bot deleted the fo/lambda-reference branch May 28, 2020 22:39
@svc-autorelease
Copy link
Collaborator

Released 3.16.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants