void () { new Runnable() { @Override public void run() { // Invalid warning, because inner class can't access instance method, even if it wanted to. String <warning descr="Local variable 'field' hides field in class 'Outer'">field</warning> = "hello"; System.out.println(field); } }.run(); }