mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-30 12:34:00 +07:00
GitOrigin-RevId: ecc51cbb4012c96d898aa4418c1b039e0cf38bc7
18 lines
278 B
Java
18 lines
278 B
Java
// "Replace with 'switch' expression" "true-preview"
|
|
|
|
class ThroughUntilDefaultaAssignment {
|
|
|
|
static enum Letter {
|
|
A,
|
|
B,
|
|
C,
|
|
D
|
|
}
|
|
|
|
private static void test(Letter letter) {
|
|
int i = switch (letter) {
|
|
case A -> 2;
|
|
default -> 3;
|
|
};
|
|
}
|
|
} |