mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
9 lines
208 B
Java
9 lines
208 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
class X {
|
|
void test(int i) {
|
|
switch<caret> ("1" + (--i)) {
|
|
case "2" -> System.out.println("2");
|
|
default -> System.out.println("1");
|
|
}
|
|
}
|
|
} |