From adec39e232be8a0c179e57ef1a093b1504f1f3d7 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Fri, 22 Jan 2016 14:35:02 +0300 Subject: [PATCH] removed assertion because Jeka hates swing --- .../src/com/intellij/util/concurrency/BoundedTaskExecutor.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/platform/util/src/com/intellij/util/concurrency/BoundedTaskExecutor.java b/platform/util/src/com/intellij/util/concurrency/BoundedTaskExecutor.java index 59c0a4c18556..3c75ce99102c 100644 --- a/platform/util/src/com/intellij/util/concurrency/BoundedTaskExecutor.java +++ b/platform/util/src/com/intellij/util/concurrency/BoundedTaskExecutor.java @@ -25,7 +25,6 @@ import com.intellij.util.containers.ContainerUtil; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.TestOnly; -import javax.swing.*; import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -186,7 +185,6 @@ public class BoundedTaskExecutor extends AbstractExecutorService { @TestOnly public void waitAllTasksExecuted(int timeout, @NotNull TimeUnit unit) throws ExecutionException, InterruptedException { - assert SwingUtilities.isEventDispatchThread() : Thread.currentThread(); // to make sure we are not waiting inside the pooled thread, blocking it forever final CountDownLatch started = new CountDownLatch(myMaxTasks); final CountDownLatch readyToFinish = new CountDownLatch(1); // start myMaxTasks runnables which will spread to all available executor threads