summaryrefslogtreecommitdiffstats
path: root/test/org
diff options
context:
space:
mode:
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-09-05 13:12:40 +0400
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-09-07 14:35:39 +0400
commitff382a6fdfec77d9b9cb3165eb7eb2989abb604f (patch)
treece347d64ee9dd061d7bb3cd7a530650ccb6448d3 /test/org
parent4e79d160ca382125d76bab3f1d18414d6308d614 (diff)
downloadfernflower-ff382a6fdfec77d9b9cb3165eb7eb2989abb604f.tar
fernflower-ff382a6fdfec77d9b9cb3165eb7eb2989abb604f.tar.gz
fernflower-ff382a6fdfec77d9b9cb3165eb7eb2989abb604f.tar.lz
fernflower-ff382a6fdfec77d9b9cb3165eb7eb2989abb604f.tar.xz
fernflower-ff382a6fdfec77d9b9cb3165eb7eb2989abb604f.zip
java-decompiler: fixes and cleanups
- console decompiler: resource closing, lookup instead of scan, error reporting - logger interface reworked - saver interface renamed - bytecode provider returns byte array (to reduce stream leakage) - extra level of context unit avoided - unneeded exceptions, dead code, formatting
Diffstat (limited to 'test/org')
-rw-r--r--test/org/jetbrains/java/decompiler/SingleClassesTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/org/jetbrains/java/decompiler/SingleClassesTest.java b/test/org/jetbrains/java/decompiler/SingleClassesTest.java
index 97ad079..e251e91 100644
--- a/test/org/jetbrains/java/decompiler/SingleClassesTest.java
+++ b/test/org/jetbrains/java/decompiler/SingleClassesTest.java
@@ -44,7 +44,7 @@ public class SingleClassesTest {
assertTrue(tempDir.delete());
assertTrue(tempDir.mkdirs());
- decompiler = new ConsoleDecompiler(new HashMap<String, Object>() {{
+ decompiler = new ConsoleDecompiler(tempDir, new HashMap<String, Object>() {{
put(IFernflowerPreferences.LOG_LEVEL, "warn");
put(IFernflowerPreferences.DECOMPILE_GENERIC_SIGNATURES, "1");
put(IFernflowerPreferences.REMOVE_SYNTHETIC, "1");
@@ -91,7 +91,7 @@ public class SingleClassesTest {
decompiler.addSpace(inner, true);
}
- decompiler.decompileContext(tempDir);
+ decompiler.decompileContext();
File decompiledFile = new File(tempDir, testName + ".java");
assertTrue(decompiledFile.isFile());