Apply common if parts inspection

master
Roman Ivanov 7 years ago
parent 60a161f0e3
commit 4a790b1c7c
  1. 7
      src/org/jetbrains/java/decompiler/modules/decompiler/InlineSingleBlockHelper.java

@ -118,17 +118,14 @@ public class InlineSingleBlockHelper {
StatEdge edge = lst.get(0); StatEdge edge = lst.get(0);
if (sameCatchRanges(edge)) { if (sameCatchRanges(edge)) {
if (edge.explicit) { if (!edge.explicit) {
return true;
}
else {
for (int i = index; i < seq.getStats().size(); i++) { for (int i = index; i < seq.getStats().size(); i++) {
if (!noExitLabels(seq.getStats().get(i), seq)) { if (!noExitLabels(seq.getStats().get(i), seq)) {
return false; return false;
} }
} }
return true;
} }
return true;
} }
// FIXME: count labels properly // FIXME: count labels properly
} }

Loading…
Cancel
Save