Nope, not missing anything. That should be an AtomicInteger :)