aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src/main/java/me/lucko/spark/common/heapdump
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2020-03-06 17:30:37 +0000
committerLuck <git@lucko.me>2020-03-06 17:30:37 +0000
commitf13b8b917a910885f39bf5c0c131b7a4ee3824c9 (patch)
tree0ec47fb081e41ffdd575169992736f4ba7721e5b /spark-common/src/main/java/me/lucko/spark/common/heapdump
parent4eff32f040d023e225937c1a59583f1e89b2cac2 (diff)
downloadspark-f13b8b917a910885f39bf5c0c131b7a4ee3824c9.tar.gz
spark-f13b8b917a910885f39bf5c0c131b7a4ee3824c9.tar.bz2
spark-f13b8b917a910885f39bf5c0c131b7a4ee3824c9.zip
Use ASMs type descriptor utility instead of our own
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/HeapDumpSummary.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDumpSummary.java b/spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDumpSummary.java
index 137a4fe..002ff72 100644
--- a/spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDumpSummary.java
+++ b/spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDumpSummary.java
@@ -21,10 +21,10 @@
package me.lucko.spark.common.heapdump;
import me.lucko.spark.common.command.sender.CommandSender;
-import me.lucko.spark.common.util.TypeDescriptors;
import me.lucko.spark.proto.SparkProtos;
import me.lucko.spark.proto.SparkProtos.HeapData;
import me.lucko.spark.proto.SparkProtos.HeapEntry;
+import org.objectweb.asm.Type;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@@ -95,7 +95,7 @@ public final class HeapDumpSummary {
Integer.parseInt(matcher.group(1)),
Integer.parseInt(matcher.group(2)),
Long.parseLong(matcher.group(3)),
- TypeDescriptors.getJavaType(matcher.group(4))
+ Type.getType(matcher.group(4)).getClassName()
);
} catch (Exception e) {
new IllegalArgumentException("Exception parsing line: " + line, e).printStackTrace();