mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
11 lines
324 B
Java
11 lines
324 B
Java
// "Cast lambda return to 'long'" "true-preview"
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
|
|
public class StreamFilter {
|
|
void test() {
|
|
Map<String, Long> map = Stream.of("a", "b", "c").collect(Collectors.<caret>toMap(s -> s, s -> s.length()));
|
|
}
|
|
} |