mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 18:17:08 +07:00
GitOrigin-RevId: 500a77bff4f250dbcd4779293e678d262227014f
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;
|
|
}
|
|
};
|
|
}
|
|
} |