mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-01 04:20:56 +07:00
17 lines
425 B
Java
17 lines
425 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
class X {
|
|
void test4() throws IOException {
|
|
String variable = "abc";
|
|
if (variable.equals("abc")) {
|
|
String s1 = "abcd";
|
|
} else if (variable.equals("def")) {
|
|
String s1 = "abcd";
|
|
myFunction(s1);
|
|
} else {
|
|
throw new IllegalArgumentException();
|
|
}
|
|
}
|
|
|
|
public void myFunction(Object o1) throws IOException {
|
|
}
|
|
} |