mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
12 lines
290 B
Java
12 lines
290 B
Java
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
|
|
class Test {
|
|
public void foo(Stream<String> stream) {
|
|
stream.collect(Collectors.toMap(null, e -> bar(e)));
|
|
}
|
|
|
|
public String bar(int entity) { return null; }
|
|
public String bar(String entity) { return null; }
|
|
} |