mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix compilation
This commit is contained in:
@@ -208,7 +208,7 @@ public class PlatformTestUtil {
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
public static void waitForAlarm(final int delay) {
|
||||
public static void waitForAlarm(final int delay) throws InterruptedException {
|
||||
assert !ApplicationManager.getApplication().isWriteAccessAllowed(): "It's a bad idea to wait for an alarm under the write action. Somebody creates an alarm which requires read action and you are deadlocked.";
|
||||
assert ApplicationManager.getApplication().isDispatchThread();
|
||||
|
||||
@@ -236,7 +236,8 @@ public class PlatformTestUtil {
|
||||
boolean sleptAlready = false;
|
||||
while (!invoked.get()) {
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
TimeoutUtil.sleep(sleptAlready ? 10 : delay);
|
||||
//noinspection BusyWait
|
||||
Thread.sleep(sleptAlready ? 10 : delay);
|
||||
sleptAlready = true;
|
||||
}
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
|
||||
Reference in New Issue
Block a user