Files
openide/java/java-impl/resources/inspectionDescriptions/TextLabelInSwitchStatement.html
2025-02-05 04:43:28 +00:00

16 lines
378 B
HTML

<html>
<body>
Reports labeled statements inside of <code>switch</code> statements.
While occasionally intended, this construction is often the result of a typo.
<p><b>Example:</b></p>
<pre><code>
switch (x) {
case 1:
case2: //warning: Text label 'case2:' in 'switch' statement
case 3:
break;
}
</code></pre>
<!-- tooltip end -->
</body>
</html>