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 InstrumentationTestRunner from interface to abstract class #5112

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

anuraaga
Copy link
Contributor

I am looking into enabling java lint on this repo like the other ones and one particularly hairy one was the @SafeVarargs on the default method in InstrumentationTestRunner. It can only be applied on a final method, which is impossible for interfaces. I figured there isn't a big advantage to using an interface since it's more of a "bag of logic" for only two implementations that we would ever write, and in fact it allowed me to share some more code between the two.

@anuraaga anuraaga requested a review from a team as a code owner January 14, 2022 05:13
Copy link
Contributor

@iNikem iNikem left a comment

Choose a reason for hiding this comment

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

Sealed classes!

@trask trask merged commit a368190 into open-telemetry:main Jan 14, 2022
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
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.

None yet

5 participants