Issue #75 If ... return

This commit is contained in:
Jindra Petk
2013-04-20 10:11:58 +02:00
parent dff40cafef
commit dca5bc5466

View File

@@ -1075,10 +1075,10 @@ public class Graph {
}
if ((!onTrue.isEmpty()) && (!onFalse.isEmpty())) {
if (onTrue.get(onTrue.size() - 1) instanceof ExitItem) {
if (onFalse.get(onFalse.size() - 1) instanceof ContinueItem) {
retw.add(onFalse.remove(onFalse.size() - 1));
}
GraphTargetItem last=onTrue.get(onTrue.size() - 1);
if ((last instanceof ExitItem)||(last instanceof ContinueItem)||(last instanceof BreakItem)) {
retw.addAll(onFalse);
onFalse.clear();
}
}