mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
replace implements with static imports (IDEA-37581): check for supers
This commit is contained in:
@@ -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";
|
||||
}
|
||||
@@ -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(){}
|
||||
}
|
||||
@@ -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";
|
||||
}
|
||||
Reference in New Issue
Block a user