besides, using atomic operations will allow you to drop synchronize altogether which makes your code slightly faster.
... and potentially quite broken. At the very least, if this value is ready anywhere you'll have to use an atomicLoad there in place of the synchronized block you would have used.