Skip to content

Convert InstrumentationTestRunner from interface to abstract class - #5112

Merged
trask merged 1 commit into
open-telemetry:mainfrom
anuraaga:instrumentationtestrunner-abc
Jan 14, 2022
Merged

Convert InstrumentationTestRunner from interface to abstract class#5112
trask merged 1 commit into
open-telemetry:mainfrom
anuraaga:instrumentationtestrunner-abc

Conversation

@anuraaga

Copy link
Copy Markdown
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 January 14, 2022 05:13

@iNikem iNikem left a comment

Copy link
Copy Markdown
Contributor

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.

5 participants