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:
- modify EmbeddedIfCleanUp to check for line comments on the
top and embedded if statement and preserve them in the merged
if statement
- add new method to ASTNodes to get trailing line comment for
a node plus an offset
- modify the embedded cleanup test in CleanUpTest to add new
line comment scenarios
- fixeseclipse-jdt#1853
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: