process only prepared classes

This commit is contained in:
Egor.Ushakov
2016-11-07 16:42:03 +03:00
parent dada18040a
commit 5e96d7ca9f
@@ -543,7 +543,9 @@ public class MethodBreakpoint extends BreakpointWithHighlighter<JavaMethodBreakp
progressIndicator.setIndeterminate(true);
MultiMap<ReferenceType, ReferenceType> inheritance = new MultiMap<>();
classType.virtualMachine().allClasses().forEach(type -> supertypes(type).forEach(st -> inheritance.putValue(st, type)));
classType.virtualMachine().allClasses().stream()
.filter(ReferenceType::isPrepared)
.forEach(type -> supertypes(type).forEach(st -> inheritance.putValue(st, type)));
List<ReferenceType> types = StreamEx.ofTree(classType, t -> StreamEx.of(inheritance.get(t))).skip(1).toList();
progressIndicator.setIndeterminate(false);