summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/src/inspectionDescriptions/FallthruInSwitchStatement.html
blob: 947e3bbbb157dc9f2b384ead50c2f838913669b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<html>
<body>
Reports 'fallthrough' in a <b>switch</b> statement.
'Fallthrough' is defined to occur when a series of executable statements after a <b>switch</b> label is not guaranteed
to transfer control before the next <b>switch</b> label. In that case, control 'falls through' to the statements after
that <b>switch</b> label, even though the <b>switch</b> expression does not equal
the value of the fallen-through label. While occasionally intended, this construction is confusing, and is often the result of a typo.
<!-- tooltip end -->
<p>
<small>Powered by InspectionGadgets</small>
</body>
</html>