void () { doTest(""" import java.util.concurrent.atomic.AtomicIntegerFieldUpdater; class Test { private volatile int field; static class Holder { Holder(AtomicIntegerFieldUpdater<Test> obj) {} } void test() { new Holder(AtomicIntegerFieldUpdater.newUpdater(Test.class, "field")); new Holder(AtomicIntegerFieldUpdater.newUpdater(Test.class, "field")) {}; } }"""); }