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

Fix UnnecessaryLambdaArgumentParentheses handling primitive lambda args #1192

Merged

Conversation

carterkozak
Copy link
Contributor

@carterkozak carterkozak commented Jan 27, 2020

Before this PR

- forEach((long value) -> action.accept(value));
+ forEach(long value -> action.accept(value)); // does not compile

This makes the check safer when unknown inputs are encountered.

After this PR

==COMMIT_MSG==
Fix UnnecessaryLambdaArgumentParentheses handling explicitly typed primitive lambda args
==COMMIT_MSG==

@changelog-app
Copy link

changelog-app bot commented Jan 27, 2020

Generate changelog in changelog/@unreleased

Type

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

Description

Fix UnnecessaryLambdaArgumentParentheses handling explicitly typed primitive lambda args

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from CRogers January 27, 2020 19:46
@ferozco
Copy link
Contributor

ferozco commented Jan 27, 2020

👍 thanks carter!

@bulldozer-bot bulldozer-bot bot merged commit 548c8a0 into develop Jan 27, 2020
@bulldozer-bot bulldozer-bot bot deleted the ckozak/UnnecessaryLambdaArgumentParentheses_fix branch January 27, 2020 19:56
@svc-autorelease
Copy link
Collaborator

Released 3.1.1

This was referenced Jan 27, 2020
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.

None yet

3 participants