mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
safe delete: delete method hierarchy down to the bottom
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user