replace implements with static imports (IDEA-37581)

This commit is contained in:
anna
2010-05-11 14:42:11 +04:00
parent feef300f58
commit 5e7036a74d
12 changed files with 265 additions and 0 deletions
@@ -0,0 +1,13 @@
// "Replace Implements with Static Import" "true"
import static I.FOO;
public class X {
void foo() {
System.out.println(FOO);
}
}
interface I {
String FOO = "foo";
}
@@ -0,0 +1,23 @@
// "Replace Implements with Static Import" "true"
import static I.*;
public class X {
void foo() {
System.out.println(FOO);
System.out.println(FOO1);
System.out.println(FOO2);
System.out.println(FOO3);
System.out.println(FOO4);
System.out.println(FOO5);
}
}
interface I {
String FOO = "foo";
String FOO1 = "foo";
String FOO2 = "foo";
String FOO3 = "foo";
String FOO4 = "foo";
String FOO5 = "foo";
}
@@ -0,0 +1,10 @@
// "Replace Implements with Static Import" "true"
public class X implements <caret>I {
void foo() {
System.out.println(FOO);
}
}
interface I {
String FOO = "foo";
}
@@ -0,0 +1,20 @@
// "Replace Implements with Static Import" "true"
public class X implements <caret>I {
void foo() {
System.out.println(FOO);
System.out.println(FOO1);
System.out.println(FOO2);
System.out.println(FOO3);
System.out.println(FOO4);
System.out.println(FOO5);
}
}
interface I {
String FOO = "foo";
String FOO1 = "foo";
String FOO2 = "foo";
String FOO3 = "foo";
String FOO4 = "foo";
String FOO5 = "foo";
}
@@ -0,0 +1,22 @@
// "Replace Implements with Static Import" "false"
public class X implements <caret>I {
void foo() {
System.out.println(FOO);
System.out.println(FOO1);
System.out.println(FOO2);
System.out.println(FOO3);
System.out.println(FOO4);
System.out.println(FOO5);
}
}
interface I {
String FOO = "foo";
String FOO1 = "foo";
String FOO2 = "foo";
String FOO3 = "foo";
String FOO4 = "foo";
String FOO5 = "foo";
void foo();
}
@@ -0,0 +1,7 @@
// "Replace Implements with Static Import" "false"
public class X implements <caret>I {
void bar() {}
}
interface I {
}