Seemingly pointless assertion dropped

This commit is contained in:
Roman Shevchenko
2013-02-07 19:49:28 +01:00
parent c621352038
commit ab2be770e5
2 changed files with 6 additions and 4 deletions
@@ -220,10 +220,13 @@ public interface Application extends ComponentManager {
void invokeLater(@NotNull Runnable runnable, @NotNull ModalityState state, @NotNull Condition expired);
/**
* Causes {@code runnable.run()} to be executed synchronously on the
* <p>Causes {@code runnable.run()} to be executed synchronously on the
* AWT event dispatching thread, when IDEA is in the specified modality
* state. This call blocks until all pending AWT events have been processed and (then)
* {@code runnable.run()} returns.
* {@code runnable.run()} returns.</p>
*
* <p>If current thread is an event dispatch thread then {@code runnable.run()}
* is executed immediately.</p>
*
* @param runnable the runnable to execute.
* @param modalityState the state in which the runnable will be executed.
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
* Copyright 2000-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -732,7 +732,6 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
@Override
public void invokeAndWait(@NotNull Runnable runnable, @NotNull ModalityState modalityState) {
if (isDispatchThread()) {
LOG.error("invokeAndWait must not be called from event queue thread");
runnable.run();
return;
}