Groovy
Duplicate switch case
Warning
Reliability
New
Last modified: 03 December 2024 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");
}
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
GroovyDuplicateSwitchBranch
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Groovy, 243.23126 |
Thanks for your feedback!
Was this page helpful?