replace implements with static imports (IDEA-37581): check for supers

This commit is contained in:
anna
2010-05-11 14:40:59 +04:00
parent 8be6b22b0a
commit e860849c8b
4 changed files with 67 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
// "Replace Implements with Static Import" "true"
import static I.BAZZ;
import static I.FOO;
public class X {
void bar() {
System.out.println(FOO);
System.out.println(BAZZ);
}
}
interface I extends I1{
String FOO = "foo";
}
interface I1 {
String BAZZ = "bazz";
}

View File

@@ -0,0 +1,14 @@
// "Replace Implements with Static Import" "false"
public class X implements <caret>I {
void bar() {
System.out.println(FOO);
}
}
interface I extends I1{
String FOO = "foo";
}
interface I1 {
void foo(){}
}

View File

@@ -0,0 +1,15 @@
// "Replace Implements with Static Import" "true"
public class X implements <caret>I {
void bar() {
System.out.println(FOO);
System.out.println(BAZZ);
}
}
interface I extends I1{
String FOO = "foo";
}
interface I1 {
String BAZZ = "bazz";
}