未验证 提交 f37a47fe 编写于 作者: wu-sheng's avatar wu-sheng 提交者: GitHub

Merge pull request #643 from ascrutae/fix/match-failed

fix match failed issue
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册