mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 23:46:49 +07:00
GitOrigin-RevId: 2e79504ab44609427f51fe5652cb995ec72d17d6
13 lines
302 B
Java
13 lines
302 B
Java
// "Migrate to enhanced switch with rules" "true-preview"
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class X {
|
|
|
|
int test(int y) {
|
|
return switch (y) { //some comments3
|
|
case 1 -> 1; //some comments2
|
|
case 2 -> 3; /*some comments1*/
|
|
default -> 5; //some comments
|
|
};
|
|
}
|
|
} |