Inspectopedia Help

Unnecessary 'continue' statement

Reports continue statements if they are last reachable statements in the loop. These continue statements are unnecessary and can be safely removed.


for(int i in array) { println(i) continue }

After the quick-fix is applied:

for(int i in array) { println(i) }

For more information, see the same inspection in Java.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Groovy, 233.SNAPSHOT

Last modified: 13 July 2023