Is there some Intelli-gent way to move a local variable to an upper
local scope? E.g.
LocalVar var = new LocalVar();
// do s/th with var, inside the if-scope only
And now I am searching for refactoring or something that would
produce the following:
LocalVar var; // ]]>
Namely, the LocalVar variable is now declared in the scope that
bounds the scope of the "if".
If there isn't something like this, will be a JIRA issue appreciated?
Greetings to all!