Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-vimal committed Jul 14, 2023
1 parent 05eec70 commit a798e39
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@

package com.google.auth.oauth2;

import java.util.Map;

import static com.google.api.client.util.Preconditions.checkNotNull;

import java.util.Map;

/** Base credential source class. Dictates the retrieval method of the external credential. */
public abstract class ExternalAccountCredentialSource implements java.io.Serializable {

private static final long serialVersionUID = 8204657811562399944L;
private static final long serialVersionUID = 8204657811562399944L;

public ExternalAccountCredentialSource(Map<String, Object> credentialSourceMap) {
checkNotNull(credentialSourceMap);
}
public ExternalAccountCredentialSource(Map<String, Object> credentialSourceMap) {
checkNotNull(credentialSourceMap);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ public abstract class ExternalAccountCredentials extends GoogleCredentials {

private static final long serialVersionUID = 8049126194174465023L;



private static final String CLOUD_PLATFORM_SCOPE =
"https://www.googleapis.com/auth/cloud-platform";

Expand Down Expand Up @@ -139,7 +137,7 @@ protected ExternalAccountCredentials(
audience,
subjectTokenType,
tokenUrl,
externalAccountCredentialSource,
externalAccountCredentialSource,
tokenInfoUrl,
serviceAccountImpersonationUrl,
quotaProjectId,
Expand Down Expand Up @@ -776,7 +774,8 @@ public Builder setTokenUrl(String tokenUrl) {
* @param externalAccountCredentialSource the {@code CredentialSource} to set
* @return this {@code Builder} object
*/
public Builder setCredentialSource(ExternalAccountCredentialSource externalAccountCredentialSource) {
public Builder setCredentialSource(
ExternalAccountCredentialSource externalAccountCredentialSource) {
this.externalAccountCredentialSource = externalAccountCredentialSource;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public class IdentityPoolCredentials extends ExternalAccountCredentials {
/** Internal constructor. See {@link Builder}. */
IdentityPoolCredentials(Builder builder) {
super(builder);
this.identityPoolCredentialSource = (IdentityPoolCredentialSource) builder.externalAccountCredentialSource;
this.identityPoolCredentialSource =
(IdentityPoolCredentialSource) builder.externalAccountCredentialSource;
}

@Override
Expand Down

0 comments on commit a798e39

Please sign in to comment.