From ff382a6fdfec77d9b9cb3165eb7eb2989abb604f Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 5 Sep 2014 13:12:40 +0400 Subject: 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 --- test/org/jetbrains/java/decompiler/SingleClassesTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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() {{ + decompiler = new ConsoleDecompiler(tempDir, new HashMap() {{ 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()); -- cgit v1.2.3