EA-80374 - IAE: QuickFixFactoryImpl.createMethodReturnFix

This commit is contained in:
Anna Kozlova
2016-03-15 13:31:13 +01:00
parent 65ebda0fff
commit dfe92fd284
@@ -461,9 +461,11 @@ public class HighlightMethodUtil {
//ensure type params are not included
methodCallTypeByArgs = JavaPsiFacade.getElementFactory(method.getProject())
.createRawSubstitutor(method).substitute(methodCallTypeByArgs);
QuickFixAction.registerQuickFixAction(highlightInfo,
getFixRange(methodCall),
QUICK_FIX_FACTORY.createMethodReturnFix(containerMethod, methodCallTypeByArgs, true));
if (methodCallTypeByArgs != null) {
QuickFixAction.registerQuickFixAction(highlightInfo,
getFixRange(methodCall),
QUICK_FIX_FACTORY.createMethodReturnFix(containerMethod, methodCallTypeByArgs, true));
}
}
}
}