summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-09-01 15:05:08 +0400
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-09-01 15:11:41 +0400
commit3854b67daac14188d47a86bb6b84ccb00c087f5f (patch)
tree4138065e6b5d0c1b43b6f3fa2753492cf41661d4 /src
parent1a4e48d11d50b1c9367568ed60f6a43a469d4ace (diff)
downloadfernflower-3854b67daac14188d47a86bb6b84ccb00c087f5f.tar
fernflower-3854b67daac14188d47a86bb6b84ccb00c087f5f.tar.gz
fernflower-3854b67daac14188d47a86bb6b84ccb00c087f5f.tar.lz
fernflower-3854b67daac14188d47a86bb6b84ccb00c087f5f.tar.xz
fernflower-3854b67daac14188d47a86bb6b84ccb00c087f5f.zip
java-decompiler: post-import cleanup (tests reorganized)
Diffstat (limited to 'src')
-rw-r--r--src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java7
1 files changed, 6 insertions, 1 deletions
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();
+ }
}
// *******************************************************************