mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-31 11:20:55 +07:00
9 lines
197 B
Java
9 lines
197 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
class Test {
|
|
void foo(int x) {
|
|
switch<caret> (x) {
|
|
case 0 -> System.out.println(x);
|
|
case 1 -> System.out.println("one");
|
|
}
|
|
}
|
|
} |