mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tests fix
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
class TestClassT {
|
||||
static {
|
||||
new B().<ref>foo(TestClassT.class);
|
||||
}
|
||||
|
||||
public static class A {
|
||||
public A foo(Class<?> type) {
|
||||
return new A();
|
||||
}
|
||||
}
|
||||
public static class B extends A {
|
||||
@Override
|
||||
public B foo(Class type) {
|
||||
return new B();
|
||||
}
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import java.util.*;
|
||||
|
||||
class C {
|
||||
public static interface GenericAgnosticProcessor {
|
||||
void processMap(Map map);
|
||||
}
|
||||
|
||||
public static interface GenericAwareProcessor {
|
||||
void processMap(Map<String, String> map);
|
||||
}
|
||||
|
||||
public static class TestProcessor implements GenericAwareProcessor, GenericAgnosticProcessor {
|
||||
@Override
|
||||
public void processMap(Map map) { }
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
final TestProcessor testProcessor = new TestProcessor();
|
||||
testProcessor.<ref>processMap(new HashMap());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user