preprocess substitutor for receiver type exact references during reduction (IDEA-137417)

(cherry picked from commit 8515ed9707c6a5a61a7d908024247e523b89f08f)
This commit is contained in:
Anna Kozlova
2015-03-10 13:31:04 +01:00
parent 08598204c5
commit 80bc7dad79
3 changed files with 65 additions and 34 deletions

View File

@@ -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;
}
}