class Foo { void foo() { int x = 0; newMethod(); } private void newMethod() { int x; x = 1; } }