mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-16 16:07:12 +07:00
10 lines
304 B
Java
10 lines
304 B
Java
// "Replace with collect" "true"
|
|
import java.util.*;
|
|
import java.util.stream.Collectors;
|
|
|
|
class Test {
|
|
List<String> test(List<List<String>> list) {
|
|
List<String> result = list.stream().flatMap(Collection::stream).collect(Collectors.toList());
|
|
return Collections.unmodifiableList(result);
|
|
}
|
|
} |