mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Don't attempt to find out cls parameter name from attached sources when generating mirror text, since we only need mirror text when there's no source attached
This commit is contained in:
@@ -161,13 +161,11 @@ public class ClsParameterImpl extends ClsRepositoryPsiElement<PsiParameterStub>
|
||||
return "p" + Arrays.asList(parms).indexOf(this);
|
||||
}
|
||||
|
||||
@NonNls String name = getName();
|
||||
if (name != null) return name;
|
||||
|
||||
String[] nameSuggestions = JavaCodeStyleManager.getInstance(getProject()).suggestVariableName(VariableKind.PARAMETER, null,
|
||||
null, getType())
|
||||
.names;
|
||||
name = "p";
|
||||
|
||||
@NonNls String name = "p";
|
||||
if (nameSuggestions.length > 0) {
|
||||
name = nameSuggestions[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user