To keep the review of the new 'view' command (JDK-8306703) simple to review, code shared with other parts of JFR were not refactored as part of the enhancement.
This change will refactor the Utils class and remove duplicated code. It will also refactor out some of the methods in the Utils class to places where it's better suited.
This change will refactor the Utils class and remove duplicated code. It will also refactor out some of the methods in the Utils class to places where it's better suited.