mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
13 lines
247 B
Java
13 lines
247 B
Java
import java.util.Objects;
|
|
|
|
// "Replace 'switch' with 'if'" "true-preview"
|
|
class Test {
|
|
void test() {
|
|
enum P {
|
|
s, l;
|
|
}
|
|
P p = null;
|
|
if (Objects.requireNonNull(p) == P.s || p == P.l) {
|
|
}
|
|
}
|
|
} |