summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-09-02 20:56:03 +0400
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-09-03 11:39:32 +0400
commit2df49d32a71818227e80a8628688906f2ede8a6a (patch)
treedced5f5ebf2f860d5683abf6910f180a67f9471d /test
parentc0c83126a69a0c652f343e972f727ffd7f5f10af (diff)
downloadfernflower-2df49d32a71818227e80a8628688906f2ede8a6a.tar
fernflower-2df49d32a71818227e80a8628688906f2ede8a6a.tar.gz
fernflower-2df49d32a71818227e80a8628688906f2ede8a6a.tar.lz
fernflower-2df49d32a71818227e80a8628688906f2ede8a6a.tar.xz
fernflower-2df49d32a71818227e80a8628688906f2ede8a6a.zip
java-decompiler: fixes and cleanups
- unified attribute loading code - common methods for checking member flags - verifying skip() - correct resource closing - typos
Diffstat (limited to 'test')
-rw-r--r--test/org/jetbrains/java/decompiler/SingleClassesTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/org/jetbrains/java/decompiler/SingleClassesTest.java b/test/org/jetbrains/java/decompiler/SingleClassesTest.java
index 291c0e7..02fb612 100644
--- a/test/org/jetbrains/java/decompiler/SingleClassesTest.java
+++ b/test/org/jetbrains/java/decompiler/SingleClassesTest.java
@@ -33,9 +33,11 @@ public class SingleClassesTest {
@Before
public void setUp() throws IOException {
+ //noinspection SSBasedInspection
tempDir = File.createTempFile("decompiler_test_", "_dir");
assertTrue(tempDir.delete());
assertTrue(tempDir.mkdirs());
+
decompiler = new ConsoleDecompiler(new HashMap<String, Object>() {{
put(IFernflowerPreferences.LOG_LEVEL, "warn");
put(IFernflowerPreferences.DECOMPILE_GENERIC_SIGNATURES, "1");