void () { //noinspection Convert2Lambda doTest("class Segment {" + " private volatile int count = 0;" + " public void x() {" + " Runnable r = new Runnable() {" + " @Override" + " public void run() {" + " (Segment.this./*Non-atomic operation on volatile field 'count'*/count/**/)++;" + " }" + " };" + " }" + "}"); }