mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 23:50:57 +07:00
14 lines
308 B
Java
14 lines
308 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
class X {
|
|
void m(String s, boolean r) {
|
|
if (s.equals("a")) {
|
|
System.out.println("a");
|
|
if (r) {
|
|
} else {
|
|
throw new RuntimeException();
|
|
}
|
|
} else {
|
|
System.out.println("d");
|
|
}
|
|
}
|
|
} |