simplify JavaMethodCallElement (IDEA-CR-25120)

This commit is contained in:
peter
2017-10-05 21:11:46 +02:00
parent f96956b88c
commit cf39c28813
@@ -111,7 +111,7 @@ public class JavaMethodCallElement extends LookupItem<PsiMethod> implements Type
public void setInferenceSubstitutorFromExpectedType(@NotNull PsiElement place, @NotNull PsiType expectedType) {
myInferenceSubstitutor = SmartCompletionDecorator.calculateMethodReturnTypeSubstitutor(myMethod, expectedType);
myNeedExplicitTypeParameters = mayNeedTypeParameters(place) && !myInferenceSubstitutor.equals(PsiSubstitutor.EMPTY) && SmartCompletionDecorator.hasUnboundTypeParams(myMethod, expectedType);
myNeedExplicitTypeParameters = mayNeedTypeParameters(place) && SmartCompletionDecorator.hasUnboundTypeParams(myMethod, expectedType);
myPresentableTypeArgs = myNeedExplicitTypeParameters ? getTypeParamsText(true, myMethod, myInferenceSubstitutor) : null;
if (myPresentableTypeArgs != null && myPresentableTypeArgs.length() > 10) {
myPresentableTypeArgs = myPresentableTypeArgs.substring(0, 10) + "...>";