Skip to content

Conversation

zeitlinger
Copy link
Member

Part of #14803

@zeitlinger zeitlinger self-assigned this Oct 7, 2025
@zeitlinger zeitlinger requested a review from a team as a code owner October 7, 2025 17:01
Comment on lines 67 to 68
assertThatCode(() -> extendsClass(named(Object.class.getName())).matches(type))
.doesNotThrowAnyException();
Copy link
Contributor

Choose a reason for hiding this comment

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

if it really threw an exception then the test would already failed the first time when you called it

Copy link
Member Author

Choose a reason for hiding this comment

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

it was noExceptionThrown() before - but I can just make it a comment


@ParameterizedTest
@CsvSource({
"io.opentelemetry.javaagent.tooling.bytebuddy.matcher.testclasses.A, io.opentelemetry.javaagent.tooling.bytebuddy.matcher.testclasses.B, false",
Copy link
Contributor

Choose a reason for hiding this comment

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

could consider dropping the package name from here and adding it inside the test method

Copy link
Member Author

Choose a reason for hiding this comment

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

that makes it just harder to find usages in the IDE


import java.util.Iterator;

public class ThrowOnFirstElement implements Iterator<Object> {
Copy link
Contributor

Choose a reason for hiding this comment

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

could be package private

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.

3 participants