From 3854b67daac14188d47a86bb6b84ccb00c087f5f Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 1 Sep 2014 15:05:08 +0400 Subject: java-decompiler: post-import cleanup (tests reorganized) --- .../java/decompiler/main/decompiler/ConsoleDecompiler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java b/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java index 50a55cf..28bb4ee 100644 --- a/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java +++ b/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java @@ -133,7 +133,12 @@ public class ConsoleDecompiler implements IBytecodeProvider, IDecompilatSaver { public void decompileContext(File root) { this.root = root; - fernflower.decompileContext(); + try { + fernflower.decompileContext(); + } + finally { + fernflower.clearContext(); + } } // ******************************************************************* -- cgit v1.2.3