mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-29 09:49:56 +07:00
12 lines
274 B
Java
12 lines
274 B
Java
// "Replace 'switch' with 'if'" "true"
|
|
abstract class Test {
|
|
abstract Object getObject();
|
|
|
|
void foo(String s) {
|
|
if (s == null || "zero".equals(s)) {
|
|
System.out.println(0);
|
|
} else if ("one".equals(s)) {
|
|
System.out.println(1);
|
|
}
|
|
}
|
|
} |