mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
ConvertToLocalInspection: inline created local variable if this variable is a copy of initializer (IDEA-33733)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Convert to local" "true"
|
||||
class Test {
|
||||
|
||||
public Test(String param) {
|
||||
System.out.println(param == null ? "null" : param);
|
||||
}
|
||||
|
||||
}
|
||||
-1
@@ -12,6 +12,5 @@ class MyClassTest {
|
||||
}
|
||||
|
||||
public void setEditable1(final boolean editable1) {
|
||||
boolean editable11 = editable1;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Convert to local" "true"
|
||||
class Test {
|
||||
|
||||
private final String f<caret>ield;
|
||||
|
||||
public Test(String param) {
|
||||
field = param;
|
||||
System.out.println(field == null ? "null" : field);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user