Fix the logic
This commit is contained in:
parent
92b9c07018
commit
43487fcfb5
|
@ -119,7 +119,8 @@ public class ByteBuddyElementMatchers {
|
||||||
// in {@code getSuperClass} calls
|
// in {@code getSuperClass} calls
|
||||||
TypeDefinition typeDefinition = target;
|
TypeDefinition typeDefinition = target;
|
||||||
while (typeDefinition != null) {
|
while (typeDefinition != null) {
|
||||||
if ((!interfacesOnly && matcher.matches(typeDefinition.asGenericType()))
|
if (((!interfacesOnly || typeDefinition.isInterface())
|
||||||
|
&& matcher.matches(typeDefinition.asGenericType()))
|
||||||
|| hasInterface(typeDefinition, checkedInterfaces)) {
|
|| hasInterface(typeDefinition, checkedInterfaces)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue