mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 08:00:18 +07:00
GitOrigin-RevId: 411e4842d0ecf8cf4db0308f854e179dee46ced3
14 lines
284 B
Java
14 lines
284 B
Java
// "Replace with 'switch' expression" "true-preview"
|
|
|
|
class X {
|
|
void test(I i) {
|
|
int d = switch (i) {
|
|
case C1 c1 -> 3;
|
|
default -> 5;
|
|
};
|
|
}
|
|
|
|
sealed interface I {}
|
|
final class C1 implements I {}
|
|
final class C2 implements I {}
|
|
} |