-
Notifications
You must be signed in to change notification settings - Fork 68
fix(spring): fix and refactor class nam 8000 es for autoconfiguration and properties #1091
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
Conversation
@@ -138,7 +138,7 @@ static String buildAutoConfigRegistrationString(GapicContext context) { | |||
service -> | |||
sb.add( | |||
String.format( | |||
"%s.spring.%sSpringAutoConfig", service.pakkage(), service.name()))); | |||
"%s.spring.%sSpringAutoConfiguration", service.pakkage(), service.name()))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Now I wonder if it's worth to extract this name and the properties class name into a util, so in case we change it in the future, they stay consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea - I'll work on refactoring in this PR to something more future-proof. This is likely the only issue that will be patched here (since all of the other items are being addressed separately) so I'll update the description and title when ready for review.
Kudos, SonarCloud Quality Gate passed! |
In this PR:
<Service>SpringAutoConfig
to<Service>SpringAutoConfiguration
<Service>SpringAutoConfiguration
and<Service>SpringProperties
classes into utils to reduce potential inconsistency in the composer codeThis PR was originally opened to track and (patch where applicable) some missing items (from compiling/testing against the generated module for language):
Fixing through separate PRs:
Duration
cannot be implicitly converted from String2022
instead of2022-2022
patterncom.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider
andorg.threeten.bp.Duration
java_gapic.bzl
should call formatter to remove these