From ce80dbb7575bb93bf0546a59eee51996f6dce36c Mon Sep 17 00:00:00 2001 From: Albert Pham Date: Thu, 13 Jun 2013 17:20:08 -0700 Subject: Fixed every method being considered "mapped." --- src/main/java/com/sk89q/warmroast/McpMapping.java | 4 ++++ src/main/java/com/sk89q/warmroast/StackTraceNode.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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()) + "()"; } } else { - String actualMethod = mapping.fromMethodId(getMethodName()); + String actualMethod = mapping.mapMethodId(getMethodName()); if (actualMethod == null) { return escapeHtml(getClassName()) + "." + escapeHtml(getMethodName()) + "()"; } else { -- cgit