static method import: collect all overloaded methods to filter them after finish of stub processing (IDEA-147745)

This commit is contained in:
Anna Kozlova
2015-11-11 17:15:07 +01:00
parent 59b55c3c00
commit 823cd15864
3 changed files with 90 additions and 17 deletions

View File

@@ -0,0 +1,35 @@
// "Static import method..." "true"
package foo;
import static foo.B.a;
public class X {
{
a("");
}
}
class B {
public static Integer a(Integer i) {
return 1;
}
public static Integer a() {
return 1;
}
public static Integer a(String s) {
return 1;
}
public static Integer a(String s, String s) {
return 1;
}
}
class A {
public static Integer a(String s) {
return 1;
}
}

View File

@@ -0,0 +1,33 @@
// "Static import method..." "true"
package foo;
public class X {
{
<caret>a("");
}
}
class B {
public static Integer a(Integer i) {
return 1;
}
public static Integer a() {
return 1;
}
public static Integer a(String s) {
return 1;
}
public static Integer a(String s, String s) {
return 1;
}
}
class A {
public static Integer a(String s) {
return 1;
}
}