mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
13 lines
219 B
Java
13 lines
219 B
Java
// "Invert 'if' condition" "true-preview"
|
|
class A {
|
|
int test(int x, int y) {
|
|
return switch (y) {
|
|
default -> {
|
|
if (<caret>x > 10) {
|
|
yield 11;
|
|
}
|
|
yield 21;
|
|
}
|
|
};
|
|
}
|
|
} |