diff options
Diffstat (limited to 'spark-common/src/main/java/me/lucko/spark/common/heapdump')
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDump.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDump.java b/spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDump.java index 189f89e..f2c1c72 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDump.java +++ b/spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDump.java @@ -31,9 +31,8 @@ import java.nio.file.Path; /** * Utility for creating .hprof memory heap snapshots. */ -public final class HeapDump { - - private HeapDump() {} +public enum HeapDump { + ; /** The object name of the com.sun.management.HotSpotDiagnosticMXBean */ private static final String DIAGNOSTIC_BEAN = "com.sun.management:type=HotSpotDiagnostic"; |