mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 04:37:32 +07:00
GitOrigin-RevId: 500a77bff4f250dbcd4779293e678d262227014f
15 lines
256 B
Java
15 lines
256 B
Java
// "Invert 'if' condition" "true-preview"
|
|
class A {
|
|
int test(int x, int y) {
|
|
return switch (y) {
|
|
default -> {
|
|
if (x <= 10) {
|
|
yield 21;
|
|
}
|
|
else {
|
|
yield 11;
|
|
}
|
|
}
|
|
};
|
|
}
|
|
} |