mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
don't insert braces around single lambda parameter
This commit is contained in:
@@ -7,7 +7,7 @@ class A {
|
||||
ArrayList<String> strings = new ArrayList<String>();
|
||||
Stream<String> it = strings.stream();
|
||||
|
||||
int i = (int) it.flatMap((t) -> Collections.singletonList(t).stream()).count();
|
||||
int i = (int) it.flatMap(t -> Collections.singletonList(t).stream()).count();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ class A {
|
||||
ArrayList<String> strings = new ArrayList<String>();
|
||||
Stream<String> it = strings.stream();
|
||||
|
||||
int i = (int) it.flatMap((f) -> getFunction().apply(f).stream()).count();
|
||||
int i = (int) it.flatMap(f -> getFunction().apply(f).stream()).count();
|
||||
}
|
||||
|
||||
Function<String, List<String>> getFunction() {
|
||||
|
||||
Reference in New Issue
Block a user