#fixed code
                              public boolean getExistsLiveInstanceOrCurrentStateChange() {
    return _existsLiveInstanceOrCurrentStateChange;
  }
#vulnerable code 
                              public boolean getExistsLiveInstanceOrCurrentStateChange() {
    boolean change = _existsLiveInstanceOrCurrentStateChange;
    _existsLiveInstanceOrCurrentStateChange = false;
    return change;
  } 
                            #location 3 
                            #vulnerability type THREAD_SAFETY_VIOLATION