IDEA-188021 "Move assignment to field declaration" leaves comment in class initializer

This commit is contained in:
Tagir Valeev
2018-03-12 10:18:09 +07:00
parent fd65b22301
commit 552f6fd49e
5 changed files with 26 additions and 6 deletions
@@ -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
}
}
}
@@ -1,9 +1,9 @@
// "Move assignment to field declaration" "true"
class X {
String ff = "";
//comment
String ff = "";
void f() {
//comment
}
}
@@ -0,0 +1,9 @@
// "Move assignment to field declaration" "true"
class X {
String e, //comment
ff = "";
void f() {
}
}
@@ -0,0 +1,10 @@
// "Move assignment to field declaration" "true"
class X {
String e, ff;
void f() {
ff <caret>= //comment
"";
}
}