mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
21 lines
512 B
HTML
21 lines
512 B
HTML
<html>
|
|
<body>
|
|
Reports labeled rules of <code>switch</code> statements or <code>switch</code> expressions that have a redundant code block.
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
String s = switch (n) {
|
|
case 1 -> { yield Integer.toString(n); }
|
|
default -> "default";
|
|
};
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
String s = switch (n) {
|
|
case 1 -> Integer.toString(n);
|
|
default -> "default";
|
|
};
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p><small>New in 2019.1</small></p>
|
|
</body>
|
|
</html> |