diff options
author | Albert Pham <the.sk89q@gmail.com> | 2013-06-13 17:20:08 -0700 |
---|---|---|
committer | Albert Pham <the.sk89q@gmail.com> | 2013-06-13 17:20:08 -0700 |
commit | ce80dbb7575bb93bf0546a59eee51996f6dce36c (patch) | |
tree | 4314316665342618dd36fe5cfdde87e29402e95f /src/main/java/com/sk89q | |
parent | ee6bc93ee04f20f6d22f800d60cd6a32795f4d2d (diff) | |
download | spark-ce80dbb7575bb93bf0546a59eee51996f6dce36c.tar.gz spark-ce80dbb7575bb93bf0546a59eee51996f6dce36c.tar.bz2 spark-ce80dbb7575bb93bf0546a59eee51996f6dce36c.zip |
Fixed every method being considered "mapped."
Diffstat (limited to 'src/main/java/com/sk89q')
-rw-r--r-- | src/main/java/com/sk89q/warmroast/McpMapping.java | 4 | ||||
-rw-r--r-- | src/main/java/com/sk89q/warmroast/StackTraceNode.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/sk89q/warmroast/McpMapping.java b/src/main/java/com/sk89q/warmroast/McpMapping.java index 5ef2ff9..2e8b681 100644 --- a/src/main/java/com/sk89q/warmroast/McpMapping.java +++ b/src/main/java/com/sk89q/warmroast/McpMapping.java @@ -59,6 +59,10 @@ public class McpMapping { processMethods(lines); } + public String mapMethodId(String id) { + return methods.get(id); + } + public String fromMethodId(String id) { String method = methods.get(id); if (method == null) { diff --git a/src/main/java/com/sk89q/warmroast/StackTraceNode.java b/src/main/java/com/sk89q/warmroast/StackTraceNode.java index 1857cd1..5d751a5 100644 --- a/src/main/java/com/sk89q/warmroast/StackTraceNode.java +++ b/src/main/java/com/sk89q/warmroast/StackTraceNode.java @@ -70,7 +70,7 @@ public class StackTraceNode extends StackNode { builder.toString() + "\">" + escapeHtml(getMethodName()) + "</span>()"; } } else { - String actualMethod = mapping.fromMethodId(getMethodName()); + String actualMethod = mapping.mapMethodId(getMethodName()); if (actualMethod == null) { return escapeHtml(getClassName()) + "." + escapeHtml(getMethodName()) + "()"; } else { |