#vulnerable code 
                                @Override
    public Object[] currentState() {
        return new Object[]{eventChunk, endOfChunk};
    } 
                            #location 3 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                @Override
    public Object[] currentState() {
        return new Object[]{eventChunk};
    }