#vulnerable code 
                                public int getThreadAlive() {
        return threadAlive;
    } 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                public int getThreadAlive() {
        return threadAlive.get();
    }