mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
9 lines
206 B
Java
9 lines
206 B
Java
// "Fuse HashSet into the Stream API chain" "true-preview"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
class X {
|
|
void foo(Stream<String> s) {
|
|
Set<String> set = s.collect(Collectors.toSet());
|
|
}
|
|
} |