mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 09:03:31 +07:00
throw SlowOperationCanceledException consistently in FORCE_THROW mode
Before the change it was thrown only once. GitOrigin-RevId: befc489bc5c0edba54e64929c230d78fba9a707c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f7bf666e77
commit
32aa45b549
@@ -112,12 +112,12 @@ public final class SlowOperations {
|
||||
if (isAlwaysAllowed() || isSlowOperationAllowed()) {
|
||||
return;
|
||||
}
|
||||
if (isAlreadyReported()) {
|
||||
return;
|
||||
}
|
||||
if (isInSection(FORCE_THROW) && !Cancellation.isInNonCancelableSection()) {
|
||||
throw new SlowOperationCanceledException();
|
||||
}
|
||||
if (isAlreadyReported()) {
|
||||
return;
|
||||
}
|
||||
Holder.LOG.error(ERROR_EDT);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user