#vulnerable code 
                              public void addTask(GetTask task) {
    synchronized (getTasks) {
      task.startNanoTime = System.nanoTime();
      getTasks.addLast(task);
    }
    dispatcherThread.interrupt();
  } 
                            #location 6 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                              public void addTask(GetTask task) {
    synchronized (getTasks) {
      task.startNanoTime = System.nanoTime();
      getTasks.addLast(task);
    }
    //dispatcherThread.interrupt();
  }