mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-29 16:50:55 +07:00
12 lines
270 B
Java
12 lines
270 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
class X {
|
|
void m(String s) {
|
|
if (s.equals("foo")) {
|
|
System.out.println(1);
|
|
} else if (s.equals("bar")) {
|
|
System.out.println(3);
|
|
} else {
|
|
System.out.println(2);
|
|
}
|
|
}
|
|
} |