mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
assertion
This commit is contained in:
+1
-1
@@ -914,11 +914,11 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
|
||||
|
||||
@Override
|
||||
public void runReadAction(@NotNull final Runnable action) {
|
||||
assertReadActionAllowed();
|
||||
if (isReadAccessAllowed()) {
|
||||
action.run();
|
||||
}
|
||||
else {
|
||||
assertReadActionAllowed();
|
||||
try {
|
||||
myActionsLock.readLock().acquire();
|
||||
action.run();
|
||||
|
||||
Reference in New Issue
Block a user