mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
IDEA-182526 Move assignment to field declaration swallows comments
This commit is contained in:
@@ -3,10 +3,11 @@
|
||||
class X {
|
||||
int f = 0;
|
||||
X() {
|
||||
<caret>}
|
||||
}
|
||||
X(int i) {
|
||||
if (1==1) ;
|
||||
else {
|
||||
//sds
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Move assignment to field declaration" "true"
|
||||
|
||||
class X {
|
||||
String ff = "";
|
||||
|
||||
void f() {
|
||||
//comment
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Move assignment to field declaration" "true"
|
||||
|
||||
class X {
|
||||
String ff;
|
||||
|
||||
void f() {
|
||||
ff <caret>= ""; //comment
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user