fix match failed issue
This commit is contained in:
parent
f37a47fe01
commit
4c7eda8e38
|
|
@ -44,7 +44,7 @@ public class ListenableFutureCallbackMatch implements IndirectMatch {
|
|||
@Override
|
||||
public ElementMatcher.Junction buildJunction() {
|
||||
return not(nameStartsWith("org.springframework")).
|
||||
and(hasSuperType(named(LISTENABLE_FUTURE_CALLBACK_CLASS_NAME)));
|
||||
and(hasSuperType(named(LISTENABLE_FUTURE_CALLBACK_CLASS_NAME)));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -53,8 +53,12 @@ public class ListenableFutureCallbackMatch implements IndirectMatch {
|
|||
for (TypeDescription.Generic generic : typeDescription.getInterfaces()) {
|
||||
isMatch = isMatch || matchExactClass(generic);
|
||||
}
|
||||
|
||||
return isMatch || matchExactClass(typeDescription.getSuperClass());
|
||||
|
||||
if (typeDescription.getSuperClass() != null) {
|
||||
return isMatch || matchExactClass(typeDescription.getSuperClass());
|
||||
} else {
|
||||
return isMatch;
|
||||
}
|
||||
}
|
||||
|
||||
private boolean matchExactClass(TypeDescription.Generic clazz) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue