mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
20 lines
473 B
HTML
20 lines
473 B
HTML
<html>
|
|
<body>
|
|
Reports nested <code>switch</code> statements or expressions.
|
|
<p>Nested <code>switch</code> statements
|
|
may result in extremely confusing code. These statements may be extracted to a separate method.</p>
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
int res = switch (i) {
|
|
case 0 -> 0;
|
|
default -> switch (i) {
|
|
case 100 -> 0;
|
|
default -> i;
|
|
};
|
|
};
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>
|
|
|
|
</body>
|
|
</html> |