mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-08 12:36:52 +07:00
1. localVariableIsCopy -> isLocalVariableCopy 2. added more precise convert to local quick fix message (with info about to where field will be inlined) 3. fixed tests for new convert to local quick fix messages 4. removed inlineVariable(PsiVariable, PsiExpression)
14 lines
226 B
Java
14 lines
226 B
Java
// "Convert field to local variable in method 'getFoo1'" "true"
|
|
class Test {
|
|
private int my<caret>Foo;
|
|
|
|
int getFoo1(boolean f) {
|
|
if (f) {
|
|
myFoo = 1;
|
|
}
|
|
else {
|
|
myFoo = 2;
|
|
}
|
|
return myFoo;
|
|
}
|
|
} |