no simple property accessor folding in dumb mode (EA-63790)

This commit is contained in:
peter
2015-01-02 15:02:18 +01:00
parent 535be499c9
commit 9028a7b129
@@ -91,6 +91,8 @@ public abstract class JavaFoldingBuilderBase extends CustomFoldingBuilder implem
}
private static boolean isSimplePropertyAccessor(PsiMethod method) {
if (DumbService.isDumb(method.getProject())) return false;
PsiCodeBlock body = method.getBody();
if (body == null || body.getLBrace() == null || body.getRBrace() == null) return false;
PsiStatement[] statements = body.getStatements();