don't drop comment inside condition on inverting if

This commit is contained in:
Bas Leijdekkers
2018-02-04 23:32:20 +01:00
parent 63e5ede6f4
commit a4a30a9c0c
3 changed files with 30 additions and 22 deletions
@@ -0,0 +1,12 @@
// "Invert 'if' condition" "true"
class A {
public void foo() {
//comment
if (1 != 2) {
System.out.println("false");
}
else {
System.out.println("true");
}
}
}