/** * Fills in defaults if {@code null}. */ private void defaultOptionals() { if (this.httpTransport == null) { this.httpTransport = DEFAULT_HTTP_TRANSPORT; } if (this.tokenServerUrl == null) { this.tokenServerUrl = GoogleOAuthConstants.TOKEN_SERVER_URL; } if (this.scopes == null) { this.scopes = Lists.newArrayList(this.oAuthConfig.getScope()); } }
/** * Fills in defaults if {@code null}. */ private void defaultOptionals() { if (this.httpTransport == null) { this.httpTransport = DEFAULT_HTTP_TRANSPORT; } if (this.tokenServerUrl == null) { this.tokenServerUrl = GoogleOAuthConstants.TOKEN_SERVER_URL; } if (this.scopes == null) { this.scopes = Lists.newArrayList(this.oAuthConfig.getScope()); } }