generics: from same signature methods prefer methods without wildcards (IDEA-90802)

This commit is contained in:
anna
2012-10-31 17:49:55 +01:00
parent 06e746448c
commit f743e7ae8c
3 changed files with 34 additions and 3 deletions
@@ -0,0 +1,24 @@
import java.util.*;
interface VcsRoot {
}
interface SVcsRoot extends VcsRoot {
}
interface A {
List<? extends VcsRoot> getVcsRoots();
}
interface B {
List<SVcsRoot> getVcsRoots();
}
interface F1 extends A, B {
}
class G {
void f(F1 o) {
SVcsRoot r = o.getVcsRoots().get(0);
}
}