mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
diagnose EA-37540 - CCE: JavaDocInfoGenerator.getDocComment
This commit is contained in:
@@ -382,7 +382,11 @@ public class JavaDocInfoGenerator {
|
||||
|
||||
@Nullable
|
||||
private static PsiDocComment getDocComment(final PsiDocCommentOwner docOwner) {
|
||||
PsiDocComment comment = ((PsiDocCommentOwner)docOwner.getNavigationElement()).getDocComment();
|
||||
PsiElement navElement = docOwner.getNavigationElement();
|
||||
if (!(navElement instanceof PsiDocCommentOwner)) {
|
||||
throw new AssertionError("Wrong navElement: " + navElement + "; original = " + docOwner + " of class " + docOwner.getClass());
|
||||
}
|
||||
PsiDocComment comment = ((PsiDocCommentOwner)navElement).getDocComment();
|
||||
if (comment == null) { //check for non-normalized fields
|
||||
final PsiModifierList modifierList = docOwner.getModifierList();
|
||||
if (modifierList != null) {
|
||||
|
||||
Reference in New Issue
Block a user