Java: Don't offer "Invert If Condition" if the code structure is broken (IDEA-177291)

This commit is contained in:
Pavel Dolgov
2018-06-07 14:18:23 +03:00
parent 59f0240c26
commit cac4bf41ff
5 changed files with 64 additions and 9 deletions

View File

@@ -0,0 +1,10 @@
// "Invert 'if' condition" "false"
class C {
boolean foo() {
{
if (tr<caret>ue) continue;
if (false) return false;
}
return true;
}
}