#vulnerable code 
                                public long getPeriodEnd() {
        return endTime;
    } 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                public long getPeriodEnd() {
        return periodEnd;
    }