mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CCE
This commit is contained in:
@@ -199,7 +199,8 @@ public class GenerateMembersUtil {
|
||||
|
||||
RefactoringUtil.setVisibility(newMethod.getModifierList(), VisibilityUtil.getVisibilityModifier(method.getModifierList()));
|
||||
|
||||
PsiDocComment docComment = ((PsiMethod)method.getNavigationElement()).getDocComment();
|
||||
PsiElement navigationElement = method.getNavigationElement();
|
||||
PsiDocComment docComment = ((PsiDocCommentOwner)navigationElement).getDocComment();
|
||||
if (docComment != null) {
|
||||
newMethod.addAfter(docComment, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user