blob: d1adfe4a9ee17fbc1972c21f66c41d9ab5bcc246 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import java.util.function.Function;
class IdeaTest {
class Test<K>{}
public void checkAnnotationsPresent() {
Function<Test<? extends Annotation>, Annotation> mapper = this::getAnnotation;
Function<Test<? extends Annotation>, ? extends Annotation> mapper1 = this::getAnnotation;
}
public <A extends Annotation> A getAnnotation(Test<A> annotationClass) {
return null;
}
static class Annotation{}
}
|