From 039e6c301bf1f450eb82f4849518fe2df6d8a570 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Wed, 4 Dec 2024 13:16:02 -0500 Subject: [PATCH] chore(eventtemplates): use libcryostat TemplateType --- src/main/java/io/cryostat/agent/FlightRecorderHelper.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/io/cryostat/agent/FlightRecorderHelper.java b/src/main/java/io/cryostat/agent/FlightRecorderHelper.java index 79048a39..fb7a026f 100644 --- a/src/main/java/io/cryostat/agent/FlightRecorderHelper.java +++ b/src/main/java/io/cryostat/agent/FlightRecorderHelper.java @@ -27,6 +27,7 @@ import java.util.stream.Collectors; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; +import io.cryostat.libcryostat.templates.TemplateType; import jdk.jfr.Configuration; import jdk.jfr.FlightRecorder; import jdk.jfr.Recording; @@ -173,12 +174,6 @@ public TemplateType getType() { } } - public enum TemplateType { - TARGET, - CUSTOM, - ; - } - @SuppressFBWarnings(value = "URF_UNREAD_FIELD") public static class RecordingInfo {