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

Drop redundant parentheses around single lambda parameters #894

Closed
aioobe opened this issue Sep 26, 2019 · 1 comment
Closed

Drop redundant parentheses around single lambda parameters #894

aioobe opened this issue Sep 26, 2019 · 1 comment

Comments

@aioobe
Copy link
Contributor

aioobe commented Sep 26, 2019

Drop / disallow parentheses in lambdas such as (x) -> System.out.println(x)

@ferozco
Copy link
Contributor

ferozco commented Sep 26, 2019

Checkstyle also prevents unnecessar parens

carterkozak added a commit that referenced this issue Jan 23, 2020
Lambdas with a single parameter do not require argument parentheses.

```diff
- (value) -> value != null
+ value -> value != null
```
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

No branches or pull requests

2 participants