mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
IDEA-177602 'Move assignment to field declaration' doesn't work if rhs contains field reference
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// "Move assignment to field declaration" "true"
|
||||
public class Test {
|
||||
String myField = "foo";
|
||||
private String value = myField.trim();
|
||||
|
||||
void f() {
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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