Files

17 lines
299 B
Java

// "Replace with 'switch' expression" "true-preview"
import org.jetbrains.annotations.Nullable;
class X {
int test4(int x) {
swi<caret>tch (x) {
case 1:
return 2;
case 2:
return 4;
default:
case 3:
}
throw new IllegalArgumentException();
}
}