mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inline superclass: do not call for refactoring which would be invoked later: call method instead (IDEA-86806)
This commit is contained in:
@@ -412,7 +412,7 @@ public class InlineMethodProcessor extends BaseRefactoringProcessor {
|
||||
}
|
||||
}
|
||||
|
||||
private void inlineMethodCall(PsiReferenceExpression ref) throws IncorrectOperationException {
|
||||
public void inlineMethodCall(PsiReferenceExpression ref) throws IncorrectOperationException {
|
||||
InlineUtil.TailCallType tailCall = InlineUtil.getTailCallType(ref);
|
||||
ChangeContextUtil.encodeContextInfo(myMethod, false);
|
||||
myMethodCopy = (PsiMethod)myMethod.copy();
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ public class InlineSuperCallUsageInfo extends FixableUsageInfo {
|
||||
assert inliningClass != null;
|
||||
methodCopy = (PsiMethod)inliningClass.add(methodCopy);
|
||||
final InlineMethodProcessor inlineMethodProcessor = new InlineMethodProcessor(getProject(), methodCopy, methodExpression, null, true);
|
||||
inlineMethodProcessor.run();
|
||||
inlineMethodProcessor.inlineMethodCall(methodExpression);
|
||||
methodCopy.delete();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user