mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
[java] ImmutableCollectionModelUtils: remove external annotations from variable
GitOrigin-RevId: 6c4da7c385b05f50aac1952f110d95f0e425523a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6400f70dde
commit
bfce6888cb
@@ -11,6 +11,7 @@ import com.intellij.psi.codeStyle.SuggestedNameInfo;
|
||||
import com.intellij.psi.codeStyle.VariableKind;
|
||||
import com.intellij.psi.util.InheritanceUtil;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
import com.intellij.psi.util.PsiTypesUtil;
|
||||
import com.intellij.psi.util.PsiUtil;
|
||||
import com.intellij.util.ObjectUtils;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
@@ -189,6 +190,7 @@ final class ImmutableCollectionModelUtils {
|
||||
PsiMethodCallExpression call = model.myCall;
|
||||
PsiType type = call.getType();
|
||||
if (type == null) return;
|
||||
type = PsiTypesUtil.removeExternalAnnotations(type);
|
||||
String[] names = getNameSuggestions(call, type);
|
||||
if (names.length == 0) return;
|
||||
String name = names[0];
|
||||
|
||||
Reference in New Issue
Block a user