| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This pull request improves nullability safety across several credential classes (including AwsCredentials, ExternalAccountAuthorizedUserCredentials, ExternalAccountCredentials, IdentityPoolCredentials, and PluggableAuthCredentials) by adding @nullable annotations to fields, getters, and builder setters, as well as adding missing @OverRide annotations. Feedback on the changes suggests restoring the @nullable annotation on getExecutableHandler() in PluggableAuthCredentials.java because the handler can indeed be null.
Sorry, something went wrong.
…ntials Refine JSpecify nullability annotations across core ADC credential types: - Annotate optional fields, getters, and builder setters/fields with @nullable across AccessToken, ComputeEngineCredentials, AppEngineCredentials, DefaultCredentialsProvider, ImpersonatedCredentials, GdchCredentials, CloudShellCredentials, DownscopedCredentials, IdTokenCredentials, and IdTokenProvider. - Annotate EnvironmentProvider and SystemEnvironmentProvider getEnv methods with @nullable. - Remove redundant final modifiers on private methods in DefaultCredentialsProvider. - Ensure correct JSpecify type-use annotation placements on fields, return types, and parameters. - Migrate Preconditions imports to com.google.common.base.Preconditions. - Ensure builder copy constructors properly preserve all fields and chain super(credentials).
…nt credentials Refine JSpecify nullability annotations across ExternalAccountCredentials and subclasses: - Annotate optional fields, getters, and builder setters/fields with @nullable across ExternalAccountCredentials, IdentityPoolCredentials, AwsCredentials, PluggableAuthCredentials, and ExternalAccountAuthorizedUserCredentials. - Ensure correct JSpecify type-use annotation placements on fields, return types, and parameters. - Migrate Preconditions imports to com.google.common.base.Preconditions. - Ensure builder copy constructors properly preserve all fields.
|
/gemini review |
Sorry, something went wrong.
There was a problem hiding this comment.
This pull request updates multiple credential classes and their builders to improve nullability annotations, add missing @OverRide annotations, and simplify string checks. However, several issues were identified in the review: the removal of .setRefreshToken(refreshToken) in ExternalAccountAuthorizedUserCredentials.fromJson causes the refresh token to be ignored, and removing the null check for scopes in IdentityPoolCredentials could lead to a NullPointerException. Additionally, the overridden setServiceAccountImpersonationOptions methods in AwsCredentials.Builder, IdentityPoolCredentials.Builder, and PluggableAuthCredentials.Builder should be annotated with @nullable to maintain consistency with the parent class.
Sorry, something went wrong.
…nt credentials Refine JSpecify nullability annotations across ExternalAccountCredentials and subclasses: - Annotate optional fields, getters, and builder setters/fields with @nullable across ExternalAccountCredentials, IdentityPoolCredentials, AwsCredentials, PluggableAuthCredentials, and ExternalAccountAuthorizedUserCredentials. - Ensure correct JSpecify type-use annotation placements on fields, return types, and parameters. - Migrate Preconditions imports to com.google.common.base.Preconditions. - Ensure builder copy constructors properly preserve all fields.
There was a problem hiding this comment.
In general LG, left one comment
Sorry, something went wrong.
…ithub.com:googleapis/google-cloud-java into fix_auth_external_account_credentials_nullability
Pull request was closed
| Back | FazBrowse Home | New Git URL |
Stacked on #14162.
Refines JSpecify nullability annotations across ExternalAccountCredentials and subclasses: