mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
Java: Fixed the intention "Invert 'if' condition" in the case of nested 'if' without braces (IDEA-167957)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Invert 'if' condition" "true"
|
||||
class Main {
|
||||
boolean method(boolean a, boolean b) {
|
||||
for (int i = 1; i < 10; i++)
|
||||
if (a)
|
||||
<caret>if (!b) /* comment 1 */
|
||||
return true; /* comment 2 */
|
||||
return false; /* comment 3 */
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user