abstract class Foo { protected String bar; } class FF extends Foo { class FFI extends Foo { void f() { if (this.bar == FF.this.bar); if (this.bar == FFI.this.bar); } } }