mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
StreamToLoop: support parenthesized collectors
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ public class Main {
|
||||
}
|
||||
|
||||
public static long testCounting(List<String> strings) {
|
||||
return strings.stream().filter(s -> !s.isEmpty()).collect(Collectors.counting());
|
||||
return strings.stream().filter(s -> !s.isEmpty()).collect((Collectors.counting()));
|
||||
}
|
||||
|
||||
public static Optional<String> testMaxBy(List<String> strings) {
|
||||
|
||||
Reference in New Issue
Block a user