raphw/byte-buddy

seems that namedOneOf isn't working as expected

Closed this issue · 1 comments

I wrote a matcher like this one and it worked, filtered methods that are annotated with @WIthSpan
not(named("saveToHistory")) .and(not(isAnnotatedWith(named("io.opentelemetry.instrumentation.annotations.WithSpan")))

when I changed named to namedOneOf it stopped working and didn't filter methods that are annotated with @WIthSpan

not(named("saveToHistory")) .and(not(isAnnotatedWith(namedOneOf("io.opentelemetry.instrumentation.annotations.WithSpan")))

my mistake