testdata for IDEA-132725

This commit is contained in:
Anna Kozlova
2014-11-12 19:37:58 +01:00
parent 0aeef103be
commit 983808535d
2 changed files with 23 additions and 1 deletions
@@ -0,0 +1,18 @@
import java.util.*;
import java.util.function.Predicate;
import java.util.stream.Stream;
import static java.util.stream.Collectors.toList;
abstract class Example {
interface PriceList {}
List<PriceList> findByTags(List<String> tags, Date date) {
return copyOf(findMatching(tags).stream().filter(isActive(date)).collect(toList()));
}
protected abstract Predicate<PriceList> isActive(Date date);
protected abstract List<PriceList> findMatching(List<String> tags);
protected abstract <E> List<E> copyOf(Collection<? extends E> e);
}
@@ -256,7 +256,11 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
}
public void testUncheckedConversionWithRecursiveTypeParams() throws Exception {
doTest(false);
doTest();
}
public void testIDEA132725() throws Exception {
doTest();
}
private void doTest() throws Exception {