From 4a790b1c7c4d649234ed9faeedbfc009eeeb9d61 Mon Sep 17 00:00:00 2001 From: Roman Ivanov Date: Thu, 1 Feb 2018 15:49:24 +0700 Subject: [PATCH] Apply common if parts inspection --- .../modules/decompiler/InlineSingleBlockHelper.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/InlineSingleBlockHelper.java b/src/org/jetbrains/java/decompiler/modules/decompiler/InlineSingleBlockHelper.java index dd431f1..f6ee600 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/InlineSingleBlockHelper.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/InlineSingleBlockHelper.java @@ -118,17 +118,14 @@ public class InlineSingleBlockHelper { StatEdge edge = lst.get(0); if (sameCatchRanges(edge)) { - if (edge.explicit) { - return true; - } - else { + if (!edge.explicit) { for (int i = index; i < seq.getStats().size(); i++) { if (!noExitLabels(seq.getStats().get(i), seq)) { return false; } } - return true; } + return true; } // FIXME: count labels properly }