-
Notifications
You must be signed in to change notification settings - Fork 864
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
Convert aws sdk tests for before 1.11.106 from groovy to java #12755
Convert aws sdk tests for before 1.11.106 from groovy to java #12755
Conversation
4509288
to
0eae90c
Compare
@RegisterExtension | ||
private static final InstrumentationExtension testing = AgentInstrumentationExtension.create(); | ||
|
||
private static final AWSCredentialsProviderChain credentialsProvider = |
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.
Use upper case here and keep same with groovy version? https://google.github.io/styleguide/javaguide.html#s5.2.4-constant-names
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.
quoting from google style guide linked by @steverao
Constants are static final fields whose contents are deeply immutable and whose methods have no detectable side effects. Examples include primitives, strings, immutable value classes, and anything set to null. If any of the instance's observable state can change, it is not a constant.
according of the above google style guide does not consider this field to be a constant
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.
Thanks for the reminder from @laurit. After careful consideration, it is reasonable not to set it as a constant. Since it is modified, I think it is OK to use constant like now or keep it as it is.
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.
@jaydeluca I'd suggest sticking with lowercase, I think we've used the language @laurit cited above previously
} | ||
|
||
@Test | ||
void testNaughtyRequestHandlerDoesntBreakTheTrace() { |
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.
😆
Related to #7195