Add a way to get corresponding org.graalvm.visualvm.lib.jfluid.heap.Heap from org.graalvm.visualvm.lib.jfluid.heap.Instance. This enhancement can simplify DetailsSupport.getDetailsString(Instance, Heap ) and implementation of DetailsProvider abstract class. There also number of other places in VIsualVM, where Instance and Heap are passed together. All this code can leave out Heap and get it from Instance when needed.
Add a way to get corresponding
org.graalvm.visualvm.lib.jfluid.heap.Heapfromorg.graalvm.visualvm.lib.jfluid.heap.Instance. This enhancement can simplifyDetailsSupport.getDetailsString(Instance, Heap )and implementation ofDetailsProviderabstract class. There also number of other places in VIsualVM, whereInstanceandHeapare passed together. All this code can leave outHeapand get it fromInstancewhen needed.