mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
replace all inheritors with static imports
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static I.BAZZ;
|
||||
import static I.FOO;
|
||||
import static I1.BAZZ;
|
||||
|
||||
public class X {
|
||||
void bar() {
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static I1.BAZZ;
|
||||
|
||||
public class X implements I {
|
||||
void bar() {
|
||||
System.out.println(FOO);
|
||||
System.out.println(BAZZ);
|
||||
}
|
||||
}
|
||||
|
||||
interface I {
|
||||
String FOO = "foo";
|
||||
}
|
||||
|
||||
interface I1 {
|
||||
String BAZZ = "bazz";
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static I1.BAZZ;
|
||||
import static II.FOO;
|
||||
|
||||
public class X {
|
||||
void bar() {
|
||||
System.out.println(FOO);
|
||||
System.out.println(BAZZ);
|
||||
}
|
||||
}
|
||||
|
||||
interface II extends I1{
|
||||
String FOO = "foo";
|
||||
}
|
||||
|
||||
interface I1 {
|
||||
String BAZZ = "bazz";
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
public class X implements I {
|
||||
void bar() {
|
||||
System.out.println(FOO);
|
||||
System.out.println(BAZZ);
|
||||
}
|
||||
}
|
||||
|
||||
interface I extends I1{
|
||||
String FOO = "foo";
|
||||
}
|
||||
|
||||
interface I<caret>1 {
|
||||
String BAZZ = "bazz";
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
public class X implements II {
|
||||
void bar() {
|
||||
System.out.println(FOO);
|
||||
System.out.println(BAZZ);
|
||||
}
|
||||
}
|
||||
|
||||
interface I<caret>I extends I1{
|
||||
String FOO = "foo";
|
||||
}
|
||||
|
||||
interface I1 {
|
||||
String BAZZ = "bazz";
|
||||
}
|
||||
Reference in New Issue
Block a user