Details
Description
The current implementation of getStack() method in hprof.parser.Reader use GZIPInputStream and FileInputStream to verify the heap dump, but they are not closed nicely.
try-with-resource should be used in this method to guarantee the file streams get closed properly.
try-with-resource should be used in this method to guarantee the file streams get closed properly.