mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
inline method: this qualifier in class hierarchy
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
public class Parent {
|
||||
void execute(){}
|
||||
void foo<caret>execute(){
|
||||
execute();
|
||||
}
|
||||
}
|
||||
|
||||
class Child extends Parent {
|
||||
void foo() {
|
||||
fooexecute();
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
fooexecute();
|
||||
}
|
||||
}.run();
|
||||
}
|
||||
|
||||
class InnerChild {
|
||||
void bar() {
|
||||
Child.this.fooexecute();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user