class X { void foo() { int x = newMethod(); } private int newMethod() { int x = 0; return x; } }