mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-31 19:50:55 +07:00
16 lines
288 B
Java
16 lines
288 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
class Test {
|
|
void foo(int x) {
|
|
//1
|
|
/*2*/
|
|
/*3*/
|
|
/*4*/
|
|
/*6*/
|
|
/*7*/
|
|
if (x == 0) {
|
|
System.out.println("zero");/*5*/
|
|
} else {
|
|
System.out.println("non-zero");/*8*/
|
|
}
|
|
}
|
|
} |