IDEA-179557 Merge nested if's removes comment

This commit is contained in:
Tagir Valeev
2017-09-26 16:58:46 +07:00
parent 24ffaeffb0
commit 4e24c72077
6 changed files with 107 additions and 31 deletions
@@ -0,0 +1,20 @@
// "Merge nested 'if's" "true"
class Test {
// IDEA-179557
public static void main(String[] args) {
long abc = 0;
do {
// comment
if (abc++ == 71 && abc++ >= 999) {
System.out.println(88);
if (abc++ < 23) {
System.err.println("Log nonsense");
}
}
} while( abc++ < 7 );
if ( abc++ < 47 ) {
System.out.println(abc);
}
}
}