mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 08:00:18 +07:00
GitOrigin-RevId: f445a9bd4e2abcf4c0e1e923d27823e8965e21f6
17 lines
303 B
Java
17 lines
303 B
Java
// "Replace with 'switch' expression" "true-preview"
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class X {
|
|
|
|
int test5(Integer x) {
|
|
swit<caret>ch (x) {
|
|
case 1:
|
|
return 2;
|
|
case 2:
|
|
return 4;
|
|
default:
|
|
case 3:
|
|
}
|
|
throw new IllegalArgumentException();
|
|
}
|
|
} |