mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
show conflicts unification;
encapsulate fields: rise conflicts; tests
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
class Test implements I {
|
||||
A myField;
|
||||
void foo() {
|
||||
myField.foo();
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,11 @@ class Test implements I {
|
||||
return myField;
|
||||
}
|
||||
|
||||
void bar(I i) {
|
||||
void foo() {
|
||||
myField.foo();
|
||||
}
|
||||
|
||||
void bar(I i) {
|
||||
i.foo();
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,11 @@ class Test implements I {
|
||||
return myField;
|
||||
}
|
||||
|
||||
void bar(I i) {
|
||||
void foo() {
|
||||
myField.foo();
|
||||
}
|
||||
|
||||
void bar(I i) {
|
||||
i.foo();
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,6 @@ class D {
|
||||
}
|
||||
|
||||
void bazz(Test t){
|
||||
t.getMyField().foo();
|
||||
t.foo();
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,10 @@
|
||||
class Test extends A {
|
||||
D myField;
|
||||
|
||||
void ff(){
|
||||
myField.foo();
|
||||
void foo(){
|
||||
myField.foo();
|
||||
}
|
||||
|
||||
public D getMyField() {
|
||||
return myField;
|
||||
}
|
||||
void ff(){
|
||||
foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user