mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
move inner to interface: strip static modifier
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
public class A {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
public interface B {
|
||||
Inner i = new Inner();
|
||||
|
||||
class Inner {
|
||||
public boolean equals(Object o) {
|
||||
return o instanceof Inner;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
public class C {
|
||||
B.Inner i = new B.Inner();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
public class A {
|
||||
public static class Inner {
|
||||
public boolean equals(Object o) {
|
||||
return o instanceof Inner;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
public interface B {
|
||||
A.Inner i = new A.Inner();
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
public class C {
|
||||
A.Inner i = new A.Inner();
|
||||
}
|
||||
Reference in New Issue
Block a user