inline method: this qualifier in class hierarchy

This commit is contained in:
anna
2010-04-28 13:15:24 +04:00
parent ba07a224ba
commit aa24f87a58
5 changed files with 68 additions and 9 deletions
@@ -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();
}
}
}