I have a method and inside this method I have a block:
public void method() { [block instructions] }
But this method is called twice in
private static final AtomicBoolean hasRunAtom = new AtomicBoolean(); public void method() { if (hasRunAtom.getAndSet(true)) return; [block instructions] }