class A { synchronized void foo() { bar(); } void bar() { } }