show conflicts unification;

encapsulate fields: rise conflicts; tests
This commit is contained in:
anna
2009-10-27 12:23:55 +03:00
parent 5a43e94baf
commit 3973debce5
29 changed files with 457 additions and 166 deletions
@@ -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;
}
}
@@ -0,0 +1,11 @@
class Test {
int i;
int getI() {
return i;
}
Test setI(int i) {
this.i = i;
return this;
}
}
@@ -0,0 +1,11 @@
class Test {
int i;
int getI() {
return i;
}
Test setI(int i) {
this.i = i;
return this;
}
}
@@ -0,0 +1,12 @@
public class Test extends Super{
int i;
int getI() {
return i;
}
}
class Super {
Super setI(int i) {
return this;
}
}
@@ -0,0 +1,12 @@
public class Test extends Super{
int i;
int getI() {
return i;
}
}
class Super {
Super setI(int i) {
return this;
}
}