mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-01 04:20:56 +07:00
10 lines
215 B
Java
10 lines
215 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
class X {
|
|
void test(int i) {
|
|
if (("1" + (--i)).equals("2")) {
|
|
System.out.println("2");
|
|
} else {
|
|
System.out.println("1");
|
|
}
|
|
}
|
|
} |