base type is already processed - skip it

This commit is contained in:
Egor.Ushakov
2016-11-03 19:01:17 +03:00
parent 936e531db3
commit a453855241
@@ -527,7 +527,7 @@ public class MethodBreakpoint extends BreakpointWithHighlighter<JavaMethodBreakp
MultiMap<ReferenceType, ReferenceType> inheritance = new MultiMap<>();
classType.virtualMachine().allClasses().forEach(type -> supertypes(type).forEach(st -> inheritance.putValue(st, type)));
StreamEx.ofTree(classType, t -> StreamEx.of(inheritance.get(t))).forEach(consumer);
StreamEx.ofTree(classType, t -> StreamEx.of(inheritance.get(t))).skip(1).forEach(consumer);
if (LOG.isDebugEnabled()) {
LOG.debug("Processing all classes took: " + String.valueOf(System.currentTimeMillis() - start) + "ms");