mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
preprocess substitutor for receiver type exact references during reduction (IDEA-137417)
(cherry picked from commit 8515ed9707c6a5a61a7d908024247e523b89f08f)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Test {
|
||||
private Map<String, PathParam<?>> foo(final Stream<PathParam<?>> pStream) {
|
||||
return pStream.collect(Collectors.toMap(PathParam::getName, Function.identity()));
|
||||
}
|
||||
}
|
||||
|
||||
class PathParam<V> extends NameValueEntity<String, V> {}
|
||||
|
||||
class NameValueEntity<N, V> {
|
||||
public N getName() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user