From 472f68f18a5ff593c2f53dd7a57d49b8bc8a4199 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 12 Nov 2014 12:21:42 +0100 Subject: [PATCH] java-decompiler: better diagnostic --- src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java b/src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java index fcc1a5d..55f7dd3 100644 --- a/src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java +++ b/src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java @@ -61,6 +61,7 @@ public class ClassWrapper { } int maxSec = Integer.parseInt(DecompilerContext.getProperty(IFernflowerPreferences.MAX_PROCESSING_METHOD).toString()); + boolean testMode = DecompilerContext.getOption(IFernflowerPreferences.UNIT_TEST_MODE); for (StructMethod mt : classStruct.getMethods()) { DecompilerContext.getLogger().startMethod(mt.getName() + " " + mt.getDescriptor()); @@ -83,7 +84,7 @@ public class ClassWrapper { try { if (mt.containsCode()) { - if (maxSec == 0) { + if (maxSec == 0 || testMode) { root = MethodProcessorRunnable.codeToJava(mt, varProc); } else {