EA-41114 - AIOOBE: StaticImportMethodFix.getExpectedType

This commit is contained in:
anna
2012-11-21 13:52:05 +01:00
parent 82c1cbfcd1
commit 73b6d506d2
3 changed files with 59 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
// "Static Import Method 'foo.B.aaaaaaa'" "true"
package foo;
import static foo.B.aaaaaaa;
public class X {
{
foo(1, 2, aaaaaaa(""));
}
void foo(Integer... p) {}
}
class B {
public static Integer aaaaaaa(String s) {
return 1;
}
}
class B1 {
public static String aaaaaaa(String s) {
return "";
}
}

View File

@@ -0,0 +1,21 @@
// "Static Import Method 'foo.B.aaaaaaa'" "true"
package foo;
public class X {
{
foo(1, 2, <caret>aaaaaaa(""));
}
void foo(Integer... p) {}
}
class B {
public static Integer aaaaaaa(String s) {
return 1;
}
}
class B1 {
public static String aaaaaaa(String s) {
return "";
}
}