mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnostics for EA-39336 - CCE: ClassMappingNameConverter.getVariants
This commit is contained in:
@@ -50,8 +50,10 @@ public class ClassMappingNameConverter extends ResolvingConverter.StringConverte
|
||||
}
|
||||
});
|
||||
if (classElement == null) return Collections.emptyList();
|
||||
PsiClass psiClass = (PsiClass)((GenericDomValue)classElement).getValue();
|
||||
if (psiClass == null) return Collections.emptyList();
|
||||
Object value = ((GenericDomValue)classElement).getValue();
|
||||
if (value == null) return Collections.emptyList();
|
||||
assert value instanceof PsiClass : classElement + " should have PsiClass type";
|
||||
PsiClass psiClass = (PsiClass)value;
|
||||
|
||||
JavaCodeStyleManager codeStyleManager = JavaCodeStyleManager.getInstance(context.getProject());
|
||||
PsiClassType classType = PsiTypesUtil.getClassType(psiClass);
|
||||
|
||||
Reference in New Issue
Block a user