mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 13:35:58 +07:00
GitOrigin-RevId: 9d8cf85eb1eee3ca8a38c2bcde119666afcc7934
10 lines
265 B
Java
10 lines
265 B
Java
// "Replace with 'Stream.mapToLong().sum()'" "true-preview"
|
|
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
|
|
class Test {
|
|
void foo(List<List<String>> s) {
|
|
long count = s.stream().peek(System.out::println).flatMap(Collection::stream).c<caret>ount();
|
|
}
|
|
} |