Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Nov 2, 2023
1 parent 3eb4047 commit da7e1b7
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ public GoogleCredentials createWithQuotaProject(String quotaProject) {
/**
* Returns the universe domain for the credential
*
* @return An explicit universe domain if it was explicitly provided, invokes
* the super implementation otherwise.
* @return An explicit universe domain if it was explicitly provided, invokes the super
* implementation otherwise.
*/
@Override
public String getUniverseDomain() {
Expand All @@ -265,8 +265,9 @@ public String getUniverseDomain() {

/**
* Checks if universe domain equals to {@link Credentials#GOOGLE_DEFAULT_UNIVERSE}.
* @return true if universeDomain equals to {@link Credentials#GOOGLE_DEFAULT_UNIVERSE},
* false otherwise
*
* @return true if universeDomain equals to {@link Credentials#GOOGLE_DEFAULT_UNIVERSE}, false
* otherwise
*/
boolean isDefaultUniverseDomain() {
return getUniverseDomain() == Credentials.GOOGLE_DEFAULT_UNIVERSE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,8 @@ private Map<String, List<String>> getRequestMetadataForNonGdu(URI uri) throws IO
// Self Signed JWT is not supported for domain-wide delegation for non-GDU universes
if (isConfiguredForDomainWideDelegation()) {
throw new IOException(
String.format("Service Account user is configured for the credential. "
String.format(
"Service Account user is configured for the credential. "
+ "Domain-wide delegation is not supported in universes different than %s.",
Credentials.GOOGLE_DEFAULT_UNIVERSE));
}
Expand Down
Loading

0 comments on commit da7e1b7

Please sign in to comment.