You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ((this.bits & ASTNode.SwitchRuleBlock) != 0) { // switch rule blocks shouldn't fall through ...
if (flowInfo != FlowInfo.DEAD_END) {
if (flowContext.associatedNode instanceof SwitchExpression) { // ... demand that for expression switch
currentScope.problemReporter().switchExpressionBlockCompletesNormally(this);
} else { // ... enforce that for statement switch, by an automagic break
flowContext.recordBreakFrom(flowInfo);
return FlowInfo.DEAD_END;
}
}
}
becomes this:
if ((this.bits & ASTNode.SwitchRuleBlock) != 0 && flowInfo != FlowInfo.DEAD_END) {
if (flowContext.associatedNode instanceof SwitchExpression) { // ... demand that for expression switch
currentScope.problemReporter().switchExpressionBlockCompletesNormally(this);
} else { // ... enforce that for statement switch, by an automagic break
flowContext.recordBreakFrom(flowInfo);
return FlowInfo.DEAD_END;
}
}
See that the original comment // switch rule blocks shouldn't fall through ... has vanished
The text was updated successfully, but these errors were encountered:
This block of code:
becomes this:
See that the original comment
// switch rule blocks shouldn't fall through ...
has vanishedThe text was updated successfully, but these errors were encountered: