mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-02 14:20:55 +07:00
12 lines
244 B
Java
12 lines
244 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
class X {
|
|
void m(String s, boolean r) {
|
|
if (r)
|
|
swi<caret>tch (s) {
|
|
case "a":
|
|
System.out.println("a");
|
|
default:
|
|
System.out.println("d");
|
|
}
|
|
}
|
|
} |