#vulnerable code 
                                public void reset() {
        this.needReSet = true;
    } 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                public void reset() {
        lock.lock();try{
        this.needReSet = true;
        ROUND_MAP.clear();
        this.init();}finally {
            lock.unlock();
        }
    }