code: private void invalidateLoginDataOnNewSettings() {
          String authDataString = "" + authData.getHost() + authData.getLogin() + authData.getPassword();
          if (!authDataString.equals(lastConnection)) {
              invalidate();
              lastConnection = authDataString;
          }
      }
docs: GerritAuthData can change at runtime (when getters are implemented dynamically so they return e.g. application
  settings. So let's check if we can re-use cached login data. Resetting them on any config change.
  Any getter-call in this class must call this method first.