testdata for IDEA-153076

This commit is contained in:
Anna.Kozlova
2016-03-16 11:34:08 +01:00
parent 6dd5715398
commit dcbb728074
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
class Test {
static class Object1 {
}
static class Object2 {
static <T extends Object1> T o2() {
return null;
}
}
private static void method1(Object1 o) {
System.out.println(o);
}
private static void <warning descr="Private method 'method1(java.lang.String)' is never used">method1</warning>(String o) {
System.out.println(o);
}
static {
method1(Object2.o2());
}
}