void () { doTest(""" class X { private volatile boolean initialized; private void initialize() { if (initialized == false) { synchronized (this) { if (initialized == false) { initialized = true; } } } } }"""); }