mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix CCE (IDEA-176405)
This commit is contained in:
@@ -120,7 +120,8 @@ public class PsiJShellHolderMethodImpl extends ASTWrapperPsiElement implements P
|
||||
@Nullable
|
||||
@Override
|
||||
public PsiCodeBlock getBody() {
|
||||
return (PsiCodeBlock)getFirstChild();
|
||||
final PsiElement child = getFirstChild();
|
||||
return child instanceof PsiCodeBlock? (PsiCodeBlock)child : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user