mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
24 lines
498 B
HTML
24 lines
498 B
HTML
<html>
|
|
<body>
|
|
Reports <code>break</code> statements with unnecessary labels. Such labels do not change the
|
|
control flow but make the code difficult to follow.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
label:
|
|
for(int i = 0; i < 10; i++) {
|
|
if (shouldBreak()) break label;
|
|
//doSmth
|
|
}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
label:
|
|
for(int i = 0; i < 10; i++) {
|
|
if (shouldBreak()) break;
|
|
//doSmth
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
|
|
</body>
|
|
</html> |