mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-31 19:50:55 +07:00
16 lines
322 B
Java
16 lines
322 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
class X {
|
|
void m(String s, boolean r) {
|
|
swi<caret>tch (s) {
|
|
case "a":
|
|
System.out.println("a");
|
|
if (r) {
|
|
break;
|
|
} else {
|
|
throw new RuntimeException();
|
|
}
|
|
default:
|
|
System.out.println("d");
|
|
}
|
|
}
|
|
} |