mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +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)
22 lines
377 B
Java
22 lines
377 B
Java
// "Convert field to local variable in method 'someMethod'" "true"
|
|
class TestFieldConversion
|
|
{
|
|
/**
|
|
* doc1
|
|
*/
|
|
private int som<caret>eInt = 0;
|
|
|
|
public void someMethod(int s) {
|
|
switch (s) {
|
|
case 1:
|
|
System.out.println(someInt);
|
|
break;
|
|
case 3:
|
|
System.out.println(someInt);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|