mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
simplify JavaMethodCallElement (IDEA-CR-25120)
This commit is contained in:
@@ -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) + "...>";
|
||||
|
||||
Reference in New Issue
Block a user