mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 04:37:32 +07:00
invert if: fix psi replacement (IDEA-174966)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// "Invert 'if' condition" "true"
|
||||
class Main {
|
||||
Object foo(boolean b1, boolean b2) {
|
||||
if (b1) {
|
||||
return null;
|
||||
} else {
|
||||
if (b2) {
|
||||
return null;
|
||||
}
|
||||
return "a";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user