mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SubstitutionVisitor#visitClassType: keep annotations
Necessary for IDEA-186732
This commit is contained in:
@@ -245,7 +245,7 @@ public class PsiSubstitutorImpl implements PsiSubstitutor {
|
||||
}
|
||||
PsiClassType result = JavaPsiFacade.getElementFactory(aClass.getProject()).createType(aClass, createSubstitutor(hashMap), classType.getLanguageLevel());
|
||||
PsiUtil.ensureValidType(result);
|
||||
return result;
|
||||
return result.annotate(classType.getAnnotationProvider());
|
||||
}
|
||||
|
||||
private PsiType substituteTypeParameter(@NotNull PsiTypeParameter typeParameter) {
|
||||
|
||||
Reference in New Issue
Block a user