safe delete: delete method hierarchy down to the bottom

This commit is contained in:
anna
2010-07-26 11:56:36 +04:00
parent 5c430dd73a
commit 353f331ea7
4 changed files with 38 additions and 3 deletions
@@ -0,0 +1,9 @@
public class Super {
}
class Child extends Super {
}
class ChildChild extends Child {
}
@@ -0,0 +1,19 @@
public class Super {
void f<caret>oo() {
}
}
class Child extends Super {
void foo(){
super.foo();
System.out.println("do some staff");
}
}
class ChildChild extends Child {
void foo(){
super.foo();
System.out.println("here do smth else");
}
}
@@ -82,6 +82,11 @@ public class SafeDeleteTest extends MultiFileTestCase {
doTest("Super");
}
public void testMethodDeepHierarchy() throws Exception {
myDoCompare = false;
doTest("Super");
}
public void testLocalVariableSideEffect() throws Exception {
myDoCompare = false;
try {