mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
Java: Don't offer "Invert If Condition" if the code structure is broken (IDEA-177291)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Invert 'if' condition" "false"
|
||||
class C {
|
||||
boolean foo() {
|
||||
{
|
||||
if (tr<caret>ue) continue;
|
||||
if (false) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user