mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 07:50:55 +07:00
As this is intention-like part of inspection (no warning), we can allow it even if we are not sure that semantics will be preserved. See comments in IDEA-177602
14 lines
229 B
Java
14 lines
229 B
Java
// "Move assignment to field declaration" "INFORMATION"
|
|
public class Test {
|
|
String myField;
|
|
private String value;
|
|
|
|
void f() {
|
|
<caret>myField = getValue();
|
|
}
|
|
|
|
public String getValue() {
|
|
return value+value;
|
|
}
|
|
}
|