Skip to content

Commit

Permalink
Add a default implementation (#42794)
Browse files Browse the repository at this point in the history
  • Loading branch information
Netyyyy authored Nov 5, 2024
1 parent fdc6b70 commit 1427d44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,6 @@
"new": "method void com.mysql.cj.protocol.ServerSession::setOldStatusFlags(int)",
"justification": "Method was added to an interface."
},
{
"code": "java.method.addedToInterface",
"new": "method java.lang.String com.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider.TokenCredentialOptions::getTokenCredentialBeanName()",
"justification": "Support to configure token credential bean name."
},
{
"code": "java.annotation.added",
"old": "method com.azure.cosmos.CosmosDiagnosticsContext com.azure.cosmos.CosmosDiagnostics::getDiagnosticsContext()",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ interface TokenCredentialOptions {
boolean isManagedIdentityEnabled();

/**
* Get the custom {@link com.azure.core.credential.TokenCredential} bean name.
* Get the custom {@link com.azure.core.credential.TokenCredential} bean name. Default return null.
* @return the token credential bean name.
*/
String getTokenCredentialBeanName();
default String getTokenCredentialBeanName() {
return null;
}
}

}

0 comments on commit 1427d44

Please sign in to comment.