replace all inheritors with static imports

This commit is contained in:
anna
2010-06-24 17:24:39 +04:00
parent 37d6f83aef
commit 11d811d3be
6 changed files with 204 additions and 27 deletions

View File

@@ -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() {

View File

@@ -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";
}

View File

@@ -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";
}

View File

@@ -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";
}

View File

@@ -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";
}