mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-177602 'Move assignment to field declaration' doesn't work if rhs contains field reference
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Move assignment to field declaration" "true"
|
||||
public class Test {
|
||||
String myField = "foo";
|
||||
private String value = myField.trim();
|
||||
|
||||
void f() {
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Move assignment to field declaration" "true"
|
||||
public class Test {
|
||||
String myField = "foo";
|
||||
private String value;
|
||||
|
||||
void f() {
|
||||
<caret>value = myField.trim();
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Move assignment to field declaration" "false"
|
||||
public class Test {
|
||||
private String value;
|
||||
String myField = "foo";
|
||||
|
||||
void f() {
|
||||
<caret>value = myField.trim();
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Move assignment to field declaration" "false"
|
||||
public class Test {
|
||||
String myField;
|
||||
private String value;
|
||||
|
||||
void f() {
|
||||
<caret>value = myField.trim();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user