mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-24 14:12:44 +07:00
bd1a21a02a
GitOrigin-RevId: ec42a9047ba63b0cbaddd8357d11ae2ed56ed6b6
10 lines
245 B
Java
10 lines
245 B
Java
// "Replace 'switch' with 'if'" "true"
|
|
class Test {
|
|
void foo(int x) {
|
|
switch<caret> (x) {
|
|
//1
|
|
case /*2*/0/*3*/ -> /*4*/System.out.println("zero");/*5*/
|
|
default /*6*/->/*7*/ System.out.println("non-zero");/*8*/
|
|
}
|
|
}
|
|
} |