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
@@ -951,11 +951,11 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
|
||||
|
||||
@Override
|
||||
public <T> T runReadAction(@NotNull final Computable<T> computation) {
|
||||
assertReadActionAllowed();
|
||||
if (isReadAccessAllowed()) {
|
||||
return computation.compute();
|
||||
}
|
||||
else {
|
||||
assertReadActionAllowed();
|
||||
try {
|
||||
myActionsLock.readLock().acquire();
|
||||
return computation.compute();
|
||||
|
||||
Reference in New Issue
Block a user