mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
DeleteSideEffectsAwareFix: handle comments
This commit is contained in:
+1
@@ -1,5 +1,6 @@
|
||||
// "Delete element" "true"
|
||||
class Test {
|
||||
void test(int x) {
|
||||
//comment
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Extract side effect" "true"
|
||||
class Test {
|
||||
void test(int x) {
|
||||
x/*2*/ =/*3*/2;/*1*//*4*//*5*/
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
// "Delete element" "true"
|
||||
class Test {
|
||||
void test(int x) {
|
||||
i<caret>f(x > 0) {}
|
||||
i<caret>f(x > 0) //comment
|
||||
{}
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Extract side effect" "true"
|
||||
class Test {
|
||||
void test(int x) {
|
||||
s<caret>witch(/*1*/x/*2*/=/*3*/2/*4*/)/*5*/ {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user