Merge pull request #643 from ascrutae/fix/match-failed
fix match failed issue
This commit is contained in:
commit
f37a47fe01
|
|
@ -72,7 +72,9 @@ public class HierarchyMatch implements IndirectMatch {
|
|||
matchHierarchyClass(implInterface, parentTypes);
|
||||
}
|
||||
|
||||
matchHierarchyClass(typeDescription.getSuperClass(), parentTypes);
|
||||
if (typeDescription.getSuperClass() != null) {
|
||||
matchHierarchyClass(typeDescription.getSuperClass(), parentTypes);
|
||||
}
|
||||
|
||||
if (parentTypes.size() == 0) {
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,10 @@ public abstract class EitherInterfaceMatch implements IndirectMatch {
|
|||
matchHierarchyClazz(generic, matchResult);
|
||||
}
|
||||
|
||||
matchHierarchyClazz(typeDescription.getSuperClass(), matchResult);
|
||||
if (typeDescription.getSuperClass() != null) {
|
||||
matchHierarchyClazz(typeDescription.getSuperClass(), matchResult);
|
||||
}
|
||||
|
||||
return matchResult.result();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue