mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 10:51:06 +07:00
also fixes internationalization and the incorrect comma in the name for "Create missing switch branches" quick-fix GitOrigin-RevId: 16285e054447d8d15318df8889499bbbf91243a7
20 lines
410 B
Java
20 lines
410 B
Java
// "Create missing branches 'AA', 'AB', and 'AC'" "true-preview"
|
|
abstract sealed class A {}
|
|
final class AA extends A {}
|
|
sealed class AB extends A {}
|
|
non-sealed class AC extends A {}
|
|
final class ABA extends AB {}
|
|
non-sealed class ABC extends AB {}
|
|
|
|
class Test {
|
|
void test(A a) {
|
|
switch (a) {
|
|
case AA aa -> {
|
|
}
|
|
case AB ab -> {
|
|
}
|
|
case AC ac -> {
|
|
}
|
|
}
|
|
}
|
|
} |