CommentTracker#makeRangeUnchanged; more comment fixes for InvertIfCondition

This commit is contained in:
Tagir Valeev
2018-03-15 12:38:58 +07:00
parent 628b803c27
commit 5a4f85ff35
5 changed files with 21 additions and 5 deletions
@@ -4,6 +4,7 @@ class A {
public void foo() {
String value ="not-null";
// Another comment
if (value == null) {
return;
}
@@ -2,8 +2,8 @@
class A {
void f(){
while (true) {
if (false) //comment
{
//comment
if (false) {
System.out.println();
}
}
@@ -7,6 +7,6 @@ class A {
<caret>if (value != null) {
System.out.println(value);
// Comment gets deleted.
}
} // Another comment
}
}