mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-188021 "Move assignment to field declaration" leaves comment in class initializer
This commit is contained in:
+2
-2
@@ -1,13 +1,13 @@
|
||||
// "Move assignment to field declaration" "INFORMATION"
|
||||
|
||||
class X {
|
||||
int f = 0;
|
||||
//sds
|
||||
int f = 0;
|
||||
X() {
|
||||
}
|
||||
X(int i) {
|
||||
if (1==1) ;
|
||||
else {
|
||||
//sds
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
// "Move assignment to field declaration" "true"
|
||||
|
||||
class X {
|
||||
String ff = "";
|
||||
//comment
|
||||
String ff = "";
|
||||
|
||||
void f() {
|
||||
//comment
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Move assignment to field declaration" "true"
|
||||
|
||||
class X {
|
||||
String e, //comment
|
||||
ff = "";
|
||||
|
||||
void f() {
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Move assignment to field declaration" "true"
|
||||
|
||||
class X {
|
||||
String e, ff;
|
||||
|
||||
void f() {
|
||||
ff <caret>= //comment
|
||||
"";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user