Inspectopedia Help

'continue' statement with label

Reports continue statements with labels.

Labeled continue statements complicate refactoring and can be confusing.


void handle(List<String> strs) { outer: for (String s: strs) { for (char ch : s.toCharArray()) { if ('s' == ch) continue outer; handleChar(ch); } } }

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.16690

Last modified: 29 April 2024