mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
don't calculate PsiType annotations when not asked to
This commit is contained in:
@@ -78,8 +78,8 @@ public class PsiPrimitiveType extends PsiType.Stub {
|
||||
}
|
||||
|
||||
private String getText(boolean qualified, boolean annotated) {
|
||||
PsiAnnotation[] annotations = getAnnotations();
|
||||
if (!annotated || annotations.length == 0) return myName;
|
||||
PsiAnnotation[] annotations = annotated ? getAnnotations() : PsiAnnotation.EMPTY_ARRAY; ;
|
||||
if (annotations.length == 0) return myName;
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
PsiNameHelper.appendAnnotations(sb, annotations, qualified);
|
||||
|
||||
@@ -100,8 +100,8 @@ public class PsiWildcardType extends PsiType.Stub {
|
||||
}
|
||||
|
||||
private String getText(boolean qualified, boolean annotated, @Nullable String suffix) {
|
||||
PsiAnnotation[] annotations = getAnnotations();
|
||||
if ((!annotated || annotations.length == 0) && suffix == null) return "?";
|
||||
PsiAnnotation[] annotations = annotated ? getAnnotations() : PsiAnnotation.EMPTY_ARRAY;
|
||||
if (annotations.length == 0 && suffix == null) return "?";
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (annotated) {
|
||||
|
||||
Reference in New Issue
Block a user