diff options
author | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-09-16 17:29:40 +0400 |
---|---|---|
committer | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-09-16 17:29:40 +0400 |
commit | a4054817d2bf2ce5a2367ca1538ab90ce5358713 (patch) | |
tree | a5675aa65d199815ac7be7244af3071140636c72 /src/org | |
parent | e1d1425f22724b105f7c710838196cec1f9ff06d (diff) | |
download | fernflower-a4054817d2bf2ce5a2367ca1538ab90ce5358713.tar fernflower-a4054817d2bf2ce5a2367ca1538ab90ce5358713.tar.gz fernflower-a4054817d2bf2ce5a2367ca1538ab90ce5358713.tar.lz fernflower-a4054817d2bf2ce5a2367ca1538ab90ce5358713.tar.xz fernflower-a4054817d2bf2ce5a2367ca1538ab90ce5358713.zip |
EA-60512 (better logging)
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/jetbrains/java/decompiler/modules/decompiler/DomHelper.java | 7 | ||||
-rw-r--r-- | src/org/jetbrains/java/decompiler/modules/decompiler/stats/Statement.java | 5 |
2 files changed, 1 insertions, 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<Integer, Set<Integer>>())) { - 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; |