Skip to content

Commit d9c397a

Browse files
committed
chore: Set a default impl for toBuilder in ExternalAccountCredentials
1 parent 8ef198d commit d9c397a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,10 @@ private static boolean isValidUrl(String url) {
683683
}
684684

685685
@Override
686-
public abstract Builder toBuilder();
686+
public Builder toBuilder() {
687+
throw new IllegalStateException(
688+
"A derived class of ExternalAccountCredentials should be used to create a Builder");
689+
}
687690

688691
/**
689692
* Encapsulates the service account impersonation options portion of the configuration for

0 commit comments

Comments
 (0)