moved off the testFramework, made thread-safe

This commit is contained in:
Alexey Kudravtsev
2013-02-18 14:43:53 +04:00
parent 5d605fecb9
commit e16c03f9d4
@@ -17,14 +17,16 @@
/*
* @author max
*/
package com.intellij.testFramework;
package com.intellij.openapi.vfs.ex.dummy;
import java.util.concurrent.atomic.AtomicInteger;
public class DummyFileIdGenerator {
private static int ourId = Integer.MAX_VALUE / 2;
private static final AtomicInteger ourId = new AtomicInteger(Integer.MAX_VALUE / 2);
private DummyFileIdGenerator() {}
public static int next() {
return ourId++;
return ourId.getAndIncrement();
}
}