When a local variable is selected in the Java editor, there is a quick assist to inline the variables value.
Consider the following:
void meth() {
String str = "foo";
return str;
}
After applying "Inline local variable" quick assist:
void meth() {
return "foo";
}
When a local variable is selected in the Java editor, there is a quick assist to inline the variables value.
Consider the following:
After applying "Inline local variable" quick assist: