mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
13 lines
228 B
Java
13 lines
228 B
Java
// "Replace 'switch' with 'if'" "true"
|
|
class Test {
|
|
void test() {
|
|
enum P {
|
|
s;
|
|
}
|
|
P p = null;
|
|
<caret>switch (p) {
|
|
case s -> {}
|
|
default -> {}
|
|
}
|
|
}
|
|
} |