Fixed #4
This commit is contained in:
林万程
2022-06-30 22:17:36 +08:00
parent ab8b4c449f
commit eadceb573f

View File

@@ -23,6 +23,9 @@ class NewCallRefToPsiDoc {
if (psiIdentifier != null && "Override".equals(psiIdentifier.getText())) {
ProjectSettingsState projectSettings = ProjectSettingsState.getInstance(psiIdentifier.getProject());
PsiMethod psiMethod = PsiTreeUtil.getParentOfType(psiIdentifier, PsiMethod.class);
if (psiMethod == null) {
return null;
}
PsiDocComment docComment = OwnerToPsiDocUtils.supperMethodDoc(psiMethod);
return SkipUtils.skipDoc(docComment, instance, projectSettings);
}