Skip to content

Commit

Permalink
Issue #1892
Browse files Browse the repository at this point in the history
  • Loading branch information
janbartel committed Oct 18, 2017
1 parent d5769c2 commit 264aa61
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,18 @@ public void handle(ClassInfo classInfo)
{
try
{
//Don't scan Object
if ("java.lang.Object".equals(classInfo.getClassName()))
return;

for (int i=0; classInfo.getInterfaces() != null && i < classInfo.getInterfaces().length;i++)
{
addToInheritanceMap(classInfo.getInterfaces()[i], classInfo.getClassName());
//_inheritanceMap.add (classInfo.getInterfaces()[i], classInfo.getClassName());
}
//To save memory, we don't record classes that only extend Object, as that can be assumed
if (!"java.lang.Object".equals(classInfo.getSuperName()))
{
addToInheritanceMap(classInfo.getSuperName(), classInfo.getClassName());
//_inheritanceMap.add(classInfo.getSuperName(), classInfo.getClassName());
}
}
catch (Exception e)
Expand Down

0 comments on commit 264aa61

Please sign in to comment.