@@ -239,7 +239,7 @@ public TokenSource getTokenSource() {
239239 return (TokenSource ) headerFactory ;
240240 }
241241 return new ErrorTokenSource (
242- String .format ("OAuth Token not supported for current auth type %s" , authType ));
242+ String .format ("OAuth Token not supported for current auth type %s" , authType ));
243243 }
244244
245245 public CredentialsProvider getCredentialsProvider () {
@@ -431,17 +431,13 @@ public DatabricksConfig setAzureUseMsi(boolean azureUseMsi) {
431431 return this ;
432432 }
433433
434- /**
435- * @deprecated Use {@link #getAzureUseMsi()} instead.
436- */
434+ /** @deprecated Use {@link #getAzureUseMsi()} instead. */
437435 @ Deprecated ()
438436 public boolean getAzureUseMSI () {
439437 return azureUseMsi ;
440438 }
441439
442- /**
443- * @deprecated Use {@link #getAzureUseMsi()} instead.
444- */
440+ /** @deprecated Use {@link #getAzureUseMsi()} instead. */
445441 @ Deprecated
446442 public DatabricksConfig setAzureUseMSI (boolean azureUseMsi ) {
447443 this .azureUseMsi = azureUseMsi ;
@@ -688,10 +684,10 @@ private OpenIDConnectEndpoints fetchDefaultOidcEndpoints() throws IOException {
688684 }
689685
690686 ApiClient apiClient =
691- new ApiClient .Builder ()
692- .withHttpClient (getHttpClient ())
693- .withGetHostFunc (v -> getHost ())
694- .build ();
687+ new ApiClient .Builder ()
688+ .withHttpClient (getHttpClient ())
689+ .withGetHostFunc (v -> getHost ())
690+ .build ();
695691 try {
696692 return apiClient .execute (
697693 new Request ("GET" , "/oidc/.well-known/oauth-authorization-server" ),
@@ -761,18 +757,18 @@ public DatabricksConfig clone() {
761757
762758 public DatabricksConfig newWithWorkspaceHost (String host ) {
763759 Set <String > fieldsToSkip =
764- new HashSet <>(
765- Arrays .asList (
766- // The config for WorkspaceClient has a different host and Azure Workspace resource
767- // ID, and also omits
768- // the account ID.
769- "host" ,
770- "accountId" ,
771- "azureWorkspaceResourceId" ,
772- // For cloud-native OAuth, we need to reauthenticate as the audience has changed, so
773- // don't cache the
774- // header factory.
775- "headerFactory" ));
760+ new HashSet <>(
761+ Arrays .asList (
762+ // The config for WorkspaceClient has a different host and Azure Workspace resource
763+ // ID, and also omits
764+ // the account ID.
765+ "host" ,
766+ "accountId" ,
767+ "azureWorkspaceResourceId" ,
768+ // For cloud-native OAuth, we need to reauthenticate as the audience has changed, so
769+ // don't cache the
770+ // header factory.
771+ "headerFactory" ));
776772 return clone (fieldsToSkip ).setHost (host );
777773 }
778774
0 commit comments