mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[threading] IJPL-229379: Remove useless assertion
In the world with background write action, this is not dangeorus anymore GitOrigin-RevId: bb74739da902529d41cb6fa2bc17f6efb158b828
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fe99cb25fb
commit
e9c7d989d4
@@ -313,9 +313,6 @@ public final class ProgressRunner<R> {
|
||||
if (!EDT.isCurrentThreadEdt()) {
|
||||
return false;
|
||||
}
|
||||
if (isSync && !ApplicationManager.getApplication().isWriteIntentLockAcquired()) {
|
||||
throw new IllegalStateException("Running sync tasks on pure EDT (w/o IW lock) is dangerous for several reasons.");
|
||||
}
|
||||
if (!isSync && isModal) {
|
||||
throw new IllegalStateException("Running async modal tasks from EDT is impossible: modal implies sync dialog show + polling events");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user