mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 04:11:31 +07:00
GitOrigin-RevId: 411e4842d0ecf8cf4db0308f854e179dee46ced3
15 lines
297 B
Java
15 lines
297 B
Java
// "Replace with 'switch' expression" "true-preview"
|
|
|
|
class X {
|
|
void test(I i) {
|
|
int d = 5;
|
|
<caret>switch (i) {
|
|
case Object ii:
|
|
d = 3;
|
|
}
|
|
}
|
|
|
|
sealed interface I {}
|
|
final class C1 implements I {}
|
|
final class C2 implements I {}
|
|
} |