mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[debugger] add RA
GitOrigin-RevId: 7376033912d53914d7513669624480761a837682
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3bd262a237
commit
f1917ff153
@@ -209,9 +209,10 @@ public class JavaLineBreakpointType extends JavaLineBreakpointTypeBase<JavaLineB
|
||||
if (file.getFileType().isBinary()) return null;
|
||||
|
||||
Project project = file.getProject();
|
||||
Document document = file.getViewProvider().getDocument();
|
||||
if (document == null) return null;
|
||||
return ReadAction.compute(() -> findSingleConditionalReturn(project, document, line));
|
||||
return ReadAction.compute(() -> {
|
||||
Document document = file.getViewProvider().getDocument();
|
||||
return document != null ? findSingleConditionalReturn(project, document, line) : null;
|
||||
});
|
||||
}
|
||||
|
||||
protected static @Nullable PsiElement findSingleConditionalReturn(@NotNull Project project, @NotNull Document document, int line) {
|
||||
|
||||
Reference in New Issue
Block a user