mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
show conflicts unification;
encapsulate fields: rise conflicts; tests
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
class Test {
|
||||
int i;
|
||||
int getI() {
|
||||
return i;
|
||||
}
|
||||
|
||||
void foo() {
|
||||
setI(getI() + 1);
|
||||
System.out.println(getI());
|
||||
|
||||
Test t;
|
||||
setI(t.getI());
|
||||
}
|
||||
|
||||
public void setI(int i) {
|
||||
this.i = i;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
class Test {
|
||||
int i;
|
||||
int getI() {
|
||||
return i;
|
||||
}
|
||||
|
||||
void foo() {
|
||||
i++;
|
||||
System.out.println(getI());
|
||||
|
||||
Test t;
|
||||
i = t.i;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
int i;
|
||||
int getI() {
|
||||
return i;
|
||||
}
|
||||
|
||||
Test setI(int i) {
|
||||
this.i = i;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
int i;
|
||||
int getI() {
|
||||
return i;
|
||||
}
|
||||
|
||||
Test setI(int i) {
|
||||
this.i = i;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
public class Test extends Super{
|
||||
int i;
|
||||
int getI() {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
class Super {
|
||||
Super setI(int i) {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
public class Test extends Super{
|
||||
int i;
|
||||
int getI() {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
class Super {
|
||||
Super setI(int i) {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user