mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
9 lines
228 B
Java
9 lines
228 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 = new HashSet<>(s.co<caret>llect(Collectors.toSet()));
|
|
}
|
|
} |