mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
invert if: fix parent ifStatement (IDEA-191327)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo(boolean c, boolean c2) {
|
||||
if (c) a();
|
||||
else {
|
||||
if (c2) {
|
||||
return;
|
||||
}
|
||||
b();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo(boolean c, boolean c2) {
|
||||
if (c) a();
|
||||
else if (!c<caret>2) b();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user