diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java index 0b05d56a667..ff9200da5aa 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java @@ -49,7 +49,7 @@ public class JetClass extends JetTypeParameterListOwnerStub imp @NotNull @Override public List getDeclarations() { - JetClassBody body = getStubOrPsiChild(JetStubElementTypes.CLASS_BODY); + JetClassBody body = getBody(); if (body == null) return Collections.emptyList(); return body.getDeclarations(); @@ -111,7 +111,7 @@ public class JetClass extends JetTypeParameterListOwnerStub imp @Override public JetClassBody getBody() { - return (JetClassBody) findChildByType(JetNodeTypes.CLASS_BODY); + return getStubOrPsiChild(JetStubElementTypes.CLASS_BODY); } @Nullable