#vulnerable code 
                                public void shutdown() {
        finished = true;
        queuedRequests.clear();
        synchronized (this) {
            notifyAll();
        }
        nextProcessor.shutdown();
    } 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                public void shutdown() {
        synchronized (this) {
            finished = true;
            queuedRequests.clear();
            notifyAll();
        }
        nextProcessor.shutdown();
    }