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

Convert aws sdk tests for before 1.11.106 from groovy to java #12755

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

jaydeluca
Copy link
Member

Related to #7195

@jaydeluca jaydeluca requested a review from a team as a code owner November 20, 2024 01:24
@RegisterExtension
private static final InstrumentationExtension testing = AgentInstrumentationExtension.create();

private static final AWSCredentialsProviderChain credentialsProvider =
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

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.

Copy link
Member

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() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

@trask trask merged commit bd49adf into open-telemetry:main Nov 20, 2024
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants