mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
regression testdata added
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import java.util.*;
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
abstract class WithAnn {
|
||||
|
||||
{
|
||||
map((Class<? extends Annotation> ann) -> getAnnotation(ann));
|
||||
map(this::getAnnotation);
|
||||
}
|
||||
|
||||
abstract <A> A getAnnotation(Class<A> annotationClass);
|
||||
abstract <R> void map(Function<Class<? extends Annotation>, ? extends R> mapper);
|
||||
}
|
||||
|
||||
class Test {
|
||||
private void it(final Set<Class<? extends String>> set) {
|
||||
set.forEach((clazz) -> bind(clazz));
|
||||
}
|
||||
|
||||
protected <T> void bind(Class<T> clazz) {}
|
||||
}
|
||||
@@ -759,6 +759,10 @@ public class GenericsHighlighting8Test extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIDEA128333() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIDEA78402() { doTest(); }
|
||||
|
||||
private void doTest() {
|
||||
|
||||
Reference in New Issue
Block a user