small dumpview enhancement

This commit is contained in:
honfika
2014-07-13 12:45:56 +02:00
parent 5ea0368a11
commit ae74347f36
2 changed files with 6 additions and 2 deletions

View File

@@ -55,12 +55,12 @@ public class DumpTreeModel implements TreeModel {
@Override
public int getChildCount(Object o) {
return ((DumpInfo) o).getChildInfos().size();
return ((DumpInfo) o).getChildCount();
}
@Override
public boolean isLeaf(Object o) {
return ((DumpInfo) o).getChildInfos().isEmpty();
return ((DumpInfo) o).getChildCount() == 0;
}
@Override