Duplicate switch case
Reports duplicated expressions in case
labels for switch
statements.
Example:
switch (n) {
case 1: //duplicate
break
case 1: //duplicate
System.out.println("2")
break
default:
System.out.println("default");
}
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Groovy, 233.SNAPSHOT |
Last modified: 13 July 2023