mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-19 18:14:57 +07:00
6fbd5cc914
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
502 B
Java
22 lines
502 B
Java
// "Convert field to local variable in method 'IntelliJBugConvertToLocal'" "true"
|
|
import java.util.ArrayList;
|
|
|
|
class ITest {
|
|
|
|
public IntelliJBugConvertToLocal(int x, int z) {
|
|
|
|
//my comment to keep in code
|
|
ArrayList<String> mayBeLocal = new ArrayList<String>();
|
|
if (x == 5) {
|
|
mayBeLocal.add("jjj");
|
|
}
|
|
|
|
if (x > z) {
|
|
useIt(mayBeLocal);
|
|
}
|
|
}
|
|
@SuppressWarnings("UnusedParameters")
|
|
private void useIt(Object data) {
|
|
System.out.println(data);
|
|
}
|
|
} |