testdata for IDEA-115210

This commit is contained in:
anna
2013-12-05 17:14:35 +01:00
parent aa63767bfa
commit 2e24dd4343
3 changed files with 65 additions and 4 deletions
@@ -0,0 +1,25 @@
import java.util.*;
class A {
private void foo(Stream<String> a) {
Map<String, List<String>> temp = a.collect(groupingBy(Function.<String>identity()));
}
interface Collector<T, A, R> {
}
public static <T, K> Collector<T, ?, Map<K, List<T>>> groupingBy(Function<? super T, ? extends K> classifier) {
return null;
}
interface Stream<T> {
<R, A> R collect(Collector<? super T, A, R> collector);
}
interface Function<A, B> {
B fn(A a);
static <T> Function<T, T> identity() {
return t -> t;
}
}
}
@@ -0,0 +1,25 @@
import java.util.*;
class A {
private void foo(Stream<String> a) {
<selection>a.collect(groupingBy(Function.<String>identity()))</selection>;
}
interface Collector<T, A, R> {
}
public static <T, K> Collector<T, ?, Map<K, List<T>>> groupingBy(Function<? super T, ? extends K> classifier) {
return null;
}
interface Stream<T> {
<R, A> R collect(Collector<? super T, A, R> collector);
}
interface Function<A, B> {
B fn(A a);
static <T> Function<T, T> identity() {
return t -> t;
}
}
}