Files
openide/plugins/groovy/groovy-psi/resources/inspectionDescriptions/GroovyUnreachableStatement.html
Ekaterina Alekseeva 9ee21affe9 [groovy] inspections proofread
GitOrigin-RevId: 61ae000bb2ddc52998d7c1e5220c04a9e6090076
2021-06-24 15:04:44 +00:00

20 lines
511 B
HTML

<html>
<body>
<p>Reports statements that are unreachable. This can occur if the statement is after an infinite loop,
<code>return</code>, <code>break</code>, or <code>continue</code> statement.</p>
<p><b>Example:</b>
<pre><code>
<b>void</b> foo (int n) {
if (n < 1) {
return
<b>print('This statement is unreachable')</b>
}
while (true){
print ('Hello, world!')
}
<b>print('This statement is unreachable too')</b>
}
</code></pre>
</body>
</html>