Fix JaxRs matching

Paranthesys was missplaced leading to more complicated matcher than needed
This commit is contained in:
Nikolay Martynov 2020-02-18 18:34:32 -05:00
parent 820103811e
commit 02fb8d8888
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ public final class JaxRsAnnotationsInstrumentation extends Instrumenter.Default
public ElementMatcher<TypeDescription> typeMatcher() { public ElementMatcher<TypeDescription> typeMatcher() {
return safeHasSuperType( return safeHasSuperType(
isAnnotatedWith(named("javax.ws.rs.Path")) isAnnotatedWith(named("javax.ws.rs.Path"))
.or(safeHasSuperType(declaresMethod(isAnnotatedWith(named("javax.ws.rs.Path")))))); .or(declaresMethod(isAnnotatedWith(named("javax.ws.rs.Path")))));
} }
@Override @Override

View File

@ -43,7 +43,7 @@ public final class JaxRsAnnotationsInstrumentation extends Instrumenter.Default
public ElementMatcher<TypeDescription> typeMatcher() { public ElementMatcher<TypeDescription> typeMatcher() {
return safeHasSuperType( return safeHasSuperType(
isAnnotatedWith(named("javax.ws.rs.Path")) isAnnotatedWith(named("javax.ws.rs.Path"))
.or(safeHasSuperType(declaresMethod(isAnnotatedWith(named("javax.ws.rs.Path")))))); .or(declaresMethod(isAnnotatedWith(named("javax.ws.rs.Path")))));
} }
@Override @Override