Inspectopedia Help

Unnecessary label on 'continue' statement

Reports continue statements with unnecessary labels.

Example:

LABEL: while (a > b) { System.out.println("Hello"); //the code below is the last statement in a loop, //so unnecessary label and continue can be removed continue LABEL; }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023