mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
replace all inheritors with static imports: minimize touched files count
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static In.FOO;
|
||||
|
||||
interface In {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
class II {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
class II1 {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
class Uc {
|
||||
static final String FOO = "";
|
||||
void g() {
|
||||
System.out.println("" + In.FOO);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static In.FOO;
|
||||
|
||||
interface In {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
class II {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@link In.FOO}
|
||||
*/
|
||||
class II1 {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
class Uc {
|
||||
static final String FOO = "";
|
||||
void g() {
|
||||
System.out.println("" + In.FOO);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static In.FOO;
|
||||
|
||||
interface In {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
class II {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@link I#FOO}
|
||||
*/
|
||||
class II1 {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
class Uc {
|
||||
static final String FOO = "";
|
||||
void g() {
|
||||
System.out.println("" + In.FOO);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static In.FOO;
|
||||
|
||||
interface In {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
class II {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
class II1 {
|
||||
int FOO = 9;
|
||||
public static void main(String[] args) {
|
||||
System.out.println(In.FOO);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
interface I<caret>n {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
class II implements In {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
class II1 implements In {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(II1.FOO);
|
||||
}
|
||||
}
|
||||
|
||||
class Uc {
|
||||
static final String FOO = "";
|
||||
void g() {
|
||||
System.out.println("" + II.FOO);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
interface I<caret>n {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
class II implements In {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@link In.FOO}
|
||||
*/
|
||||
class II1 implements In {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(II1.FOO);
|
||||
}
|
||||
}
|
||||
|
||||
class Uc {
|
||||
static final String FOO = "";
|
||||
void g() {
|
||||
System.out.println("" + II.FOO);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
interface I<caret>n {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
class II implements In {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@link I#FOO}
|
||||
*/
|
||||
class II1 implements In {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(II1.FOO);
|
||||
}
|
||||
}
|
||||
|
||||
class Uc {
|
||||
static final String FOO = "";
|
||||
void g() {
|
||||
System.out.println("" + II.FOO);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
interface I<caret>n {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
class II implements In {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(FOO);
|
||||
}
|
||||
}
|
||||
|
||||
class II1 implements In {
|
||||
int FOO = 9;
|
||||
public static void main(String[] args) {
|
||||
System.out.println(In.FOO);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user