mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
no simple property accessor folding in dumb mode (EA-63790)
This commit is contained in:
+2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user