mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
12 lines
256 B
Java
12 lines
256 B
Java
// "Remove unreachable branches" "true-preview"
|
|
class Test {
|
|
Number n = 1;
|
|
int result = switch (n) {
|
|
case <caret>Integer i when i == 1 -> i;
|
|
case Long l -> l.intValue();
|
|
default -> 1;
|
|
} + 10;
|
|
{
|
|
int i = 5;
|
|
}
|
|
} |