mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup
This commit is contained in:
@@ -2,17 +2,17 @@ interface Int<T> {
|
||||
void method(T x);
|
||||
}
|
||||
|
||||
class Sub implements Int<Xint> {
|
||||
public void method(Xint x) {
|
||||
class Sub implements Int<XInt> {
|
||||
public void method(XInt x) {
|
||||
x.inInt();
|
||||
}
|
||||
}
|
||||
|
||||
interface Xint {
|
||||
interface XInt {
|
||||
void inInt();
|
||||
}
|
||||
|
||||
class Xyz implements Xint {
|
||||
class Xyz implements XInt {
|
||||
public void inInt() {
|
||||
}
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@ class Sub implements Int<Xyz> {
|
||||
}
|
||||
}
|
||||
|
||||
interface Xint {
|
||||
interface XInt {
|
||||
void inInt();
|
||||
}
|
||||
|
||||
class Xyz implements Xint {
|
||||
class Xyz implements XInt {
|
||||
public void inInt() {
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -14,11 +14,11 @@ class Sub implements Int<Xyz> {
|
||||
}
|
||||
}
|
||||
|
||||
interface Xint {
|
||||
interface XInt {
|
||||
void inInt();
|
||||
}
|
||||
|
||||
class Xyz implements Xint {
|
||||
class Xyz implements XInt {
|
||||
public void inInt() {
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -14,11 +14,11 @@ class Sub implements Int<Xyz> {
|
||||
}
|
||||
}
|
||||
|
||||
interface Xint {
|
||||
interface XInt {
|
||||
void inInt();
|
||||
}
|
||||
|
||||
class Xyz implements Xint {
|
||||
class Xyz implements XInt {
|
||||
public void inInt() {
|
||||
}
|
||||
|
||||
|
||||
+7
-7
@@ -1,20 +1,20 @@
|
||||
interface Intf {
|
||||
interface IntF {
|
||||
}
|
||||
|
||||
interface Factory<E extends Intf> {
|
||||
interface Factory<E extends IntF> {
|
||||
E create();
|
||||
void save(E obj);
|
||||
|
||||
static class helper {
|
||||
static Factory<Intf> get2() {
|
||||
return (Factory)new Factory<Intf>() {
|
||||
public Intf create() { return null; }
|
||||
public void save(Intf obj) { }
|
||||
static Factory<IntF> get2() {
|
||||
return (Factory)new Factory<IntF>() {
|
||||
public IntF create() { return null; }
|
||||
public void save(IntF obj) { }
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class Clazz implements Intf {
|
||||
public class Clazz implements IntF {
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,12 +1,12 @@
|
||||
interface Intf {
|
||||
interface IntF {
|
||||
}
|
||||
|
||||
interface Factory<E extends Intf> {
|
||||
interface Factory<E extends IntF> {
|
||||
E create();
|
||||
void save(E obj);
|
||||
|
||||
static class helper {
|
||||
static Factory<Intf> get2() {
|
||||
static Factory<IntF> get2() {
|
||||
return (Factory)new Factory<Clazz>() {
|
||||
public Clazz create() { return null; }
|
||||
public void save(Clazz obj) { }
|
||||
@@ -16,5 +16,5 @@ interface Factory<E extends Intf> {
|
||||
}
|
||||
|
||||
|
||||
public class Clazz implements Intf {
|
||||
public class Clazz implements IntF {
|
||||
}
|
||||
|
||||
+5
-6
@@ -1,22 +1,21 @@
|
||||
interface Intf {
|
||||
interface IntF {
|
||||
}
|
||||
|
||||
interface Factory<E extends Intf> {
|
||||
interface Factory<E extends IntF> {
|
||||
E create();
|
||||
|
||||
void save(E obj);
|
||||
|
||||
static class helper {
|
||||
static Factory<Intf> get() {
|
||||
static Factory<IntF> get() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class Clazz implements Intf {
|
||||
public class Clazz implements IntF {
|
||||
void bar() {
|
||||
Intf y = Factory.helper.get().create();
|
||||
IntF y = Factory.helper.get().create();
|
||||
Factory.helper.get().save(y);
|
||||
}
|
||||
}
|
||||
|
||||
+4
-5
@@ -1,20 +1,19 @@
|
||||
interface Intf {
|
||||
interface IntF {
|
||||
}
|
||||
|
||||
interface Factory<E extends Intf> {
|
||||
interface Factory<E extends IntF> {
|
||||
E create();
|
||||
|
||||
void save(E obj);
|
||||
|
||||
static class helper {
|
||||
static Factory<Intf> get() {
|
||||
static Factory<IntF> get() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class Clazz implements Intf {
|
||||
public class Clazz implements IntF {
|
||||
void bar() {
|
||||
Clazz y = Factory.helper.get().create();
|
||||
Factory.helper.get().save(y);
|
||||
|
||||
Reference in New Issue
Block a user