From a4054817d2bf2ce5a2367ca1538ab90ce5358713 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Tue, 16 Sep 2014 17:29:40 +0400 Subject: [PATCH] EA-60512 (better logging) --- .../java/decompiler/modules/decompiler/DomHelper.java | 7 ------- .../decompiler/modules/decompiler/stats/Statement.java | 5 +---- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/DomHelper.java b/src/org/jetbrains/java/decompiler/modules/decompiler/DomHelper.java index 3bb4584..5c05910 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/DomHelper.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/DomHelper.java @@ -213,13 +213,6 @@ public class DomHelper { RootStatement root = graphToStatement(graph); if (!processStatement(root, new HashMap>())) { - DecompilerContext.getLogger().writeMessage("parsing failure!", IFernflowerLogger.Severity.ERROR); - - // try { - // DotExporter.toDotFile(root.getFirst().getStats().get(13), new File("c:\\Temp\\stat1.dot")); - // } catch (Exception ex) { - // ex.printStackTrace(); - // } throw new RuntimeException("parsing failure!"); } diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/Statement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/Statement.java index cbdb3b7..6a1a46b 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/Statement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/Statement.java @@ -19,7 +19,6 @@ import org.jetbrains.java.decompiler.code.CodeConstants; import org.jetbrains.java.decompiler.code.InstructionSequence; import org.jetbrains.java.decompiler.main.DecompilerContext; import org.jetbrains.java.decompiler.main.collectors.CounterContainer; -import org.jetbrains.java.decompiler.main.extern.IFernflowerLogger; import org.jetbrains.java.decompiler.modules.decompiler.StatEdge; import org.jetbrains.java.decompiler.modules.decompiler.StrongConnectivityHelper; import org.jetbrains.java.decompiler.modules.decompiler.exps.Exprent; @@ -463,9 +462,7 @@ public class Statement { } if (res.size() != stats.size()) { - DecompilerContext.getLogger().writeMessage("computing post reverse post order failed!", IFernflowerLogger.Severity.ERROR); - - throw new RuntimeException("parsing failure!"); + throw new RuntimeException("computing post reverse post order failed!"); } return res;