#vulnerable code 
                              @Override
  public String authority() {
    return delegate.authority();
  } 
                            #location 3 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                              @Override
  public String authority() {
    return authority;
  }