mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 01:53:51 +07:00
GitOrigin-RevId: 411e4842d0ecf8cf4db0308f854e179dee46ced3
12 lines
201 B
Java
12 lines
201 B
Java
// "Replace with 'switch' expression" "true-preview"
|
|
|
|
class X {
|
|
void test(E e) {
|
|
int d = switch (e) {
|
|
case A -> 3;
|
|
case B -> 2;
|
|
};
|
|
}
|
|
|
|
enum E {A, B}
|
|
} |