Apply common if parts inspection

This commit is contained in:
Roman Ivanov
2018-02-01 15:49:24 +07:00
parent 60a161f0e3
commit 4a790b1c7c

View File

@@ -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
}