Modifying a static variable in non-synchronized static method, is there a danger to thread safety?
<p>I have a class with a static method modifying a static variable as follows, does this method needs to be synchonized for thread safe operations ?</p>

<pre><code>public final class IdManager {

    private static int noOfIdsInReserveCurrently = 100;   
    private static final AtomicInteger allotedUserIdsCount; 

    public static int getNewId(){
         noOfIdsInReserveCurrently--;
         ....
         return allotedUserIdsCount.incrementAndGet();
    }
}
</code></pre>

<p>Should this method have been synchronized?</p>
