Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: getAuthenticationType in EmulatorCredentials should not throw. #2003

Merged
merged 4 commits into from
Feb 1, 2025

Conversation

ehsannas
Copy link
Contributor

EmulatorCredentials extends the abstract Credentials class. The signature of getAuthenticationType() function of this class does not indicate that this API could throw, and based on this description, I don't think it should.

Fixes #2002.

`EmulatorCredentials` extends the abstract `Credentials` class. The
signature of `getAuthenticationType()` function of this class does not indicate
that this API could throw, and based on [this description](https://cloud.google.com/java/docs/reference/google-auth-library/latest/com.google.auth.oauth2.OAuth2Credentials#com_google_auth_oauth2_OAuth2Credentials_getAuthenticationType__),
I don't think it should.

Fixes #2002.
@ehsannas ehsannas requested a review from a team as a code owner January 31, 2025 03:03
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Jan 31, 2025
@ehsannas ehsannas self-assigned this Jan 31, 2025
@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/java-firestore API. label Jan 31, 2025
@ehsannas ehsannas assigned MarkDuckworth and unassigned ehsannas Jan 31, 2025
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Jan 31, 2025
@cloud-java-bot cloud-java-bot requested a review from a team as a code owner February 1, 2025 00:18
@ehsannas ehsannas merged commit 29afb41 into main Feb 1, 2025
23 checks passed
@ehsannas ehsannas deleted the ehsann/emulator-credentials-should-not-throw branch February 1, 2025 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/java-firestore API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IllegalArgumentException when using Firestore emulator with the latest version, due to OTel changes
3 participants