mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
replace implements with static imports (IDEA-37581)
This commit is contained in:
+13
@@ -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";
|
||||
}
|
||||
+23
@@ -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";
|
||||
}
|
||||
+10
@@ -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";
|
||||
}
|
||||
+20
@@ -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";
|
||||
}
|
||||
+22
@@ -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();
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Replace Implements with Static Import" "false"
|
||||
public class X implements <caret>I {
|
||||
void bar() {}
|
||||
}
|
||||
|
||||
interface I {
|
||||
}
|
||||
Reference in New Issue
Block a user