Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

fix: getAuthenticationType in EmulatorCredentials should not throw. - #2003

Merged
ehsannas merged 4 commits into
mainfrom
ehsann/emulator-credentials-should-not-throw
Feb 1, 2025
Merged

ehsannas merged 4 commits into
mainfrom
ehsann/emulator-credentials-should-not-throw

Conversation

@ehsannas

Copy link
Copy Markdown
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 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 February 1, 2025 00:18
@ehsannas
ehsannas merged commit 29afb41 into main Feb 1, 2025
@ehsannas
ehsannas deleted the ehsann/emulator-credentials-should-not-throw branch February 1, 2025 05:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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