mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 21:53:58 +07:00
GitOrigin-RevId: 2e79504ab44609427f51fe5652cb995ec72d17d6
16 lines
333 B
Java
16 lines
333 B
Java
// "Migrate to enhanced switch with rules" "false"
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class X {
|
|
|
|
int test(int y) {
|
|
return swi<caret>tch (y) { //some comments3
|
|
case 1->
|
|
yield 1; //some comments2
|
|
case 2:
|
|
yield 3; /*some comments1*/
|
|
default:
|
|
yield 5; //some comments
|
|
};
|
|
}
|
|
} |