#vulnerable code 
                                public void writeData(DataOutput out) throws IOException {
        out.writeLong(mapPuts.get());
        out.writeLong(mapGets.get());
        out.writeLong(mapRemoves.get());
        out.writeLong(startTime);
        out.writeLong(endTime);
    } 
                            #location 6 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                public void writeData(DataOutput out) throws IOException {
        out.writeLong(numberOfPuts);
        out.writeLong(numberOfGets);
        out.writeLong(numberOfRemoves);
        out.writeLong(numberOfOtherOperations);
        out.writeLong(periodStart);
        out.writeLong(periodEnd);
    }