mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 18:20:52 +07:00
- Support inside switch expression - Support rule-based labels - Support break inside expression - Suggest 'switch' keyword in expressions - Insert ':' or '->' depending on the switch type
11 lines
204 B
Java
11 lines
204 B
Java
public class ConstConfig {
|
|
enum X {FOO, BAR, BAZ}
|
|
|
|
void test(X x) {
|
|
switch (x) {
|
|
case BAR -> {}
|
|
case BAZ -> {}
|
|
case FOO -> <caret>
|
|
}
|
|
}
|
|
} |