mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 21:43:33 +07:00
CommentTracker#makeRangeUnchanged; more comment fixes for InvertIfCondition
This commit is contained in:
@@ -4,6 +4,7 @@ class A {
|
||||
public void foo() {
|
||||
String value ="not-null";
|
||||
|
||||
// Another comment
|
||||
if (value == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@
|
||||
class A {
|
||||
void f(){
|
||||
while (true) {
|
||||
if (false) //comment
|
||||
{
|
||||
//comment
|
||||
if (false) {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,6 +7,6 @@ class A {
|
||||
<caret>if (value != null) {
|
||||
System.out.println(value);
|
||||
// Comment gets deleted.
|
||||
}
|
||||
} // Another comment
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user