public class Test { public void foo() { synchronized (this) { } } }