mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not run JSDocumentationTest in write action
This commit is contained in:
+1
-1
@@ -278,7 +278,7 @@ public abstract class AbstractExternalFilter {
|
||||
@SuppressWarnings({"HardCodedStringLiteral"})
|
||||
public String getExternalDocInfo(final String surl) throws Exception {
|
||||
Application app = ApplicationManager.getApplication();
|
||||
if (app.isDispatchThread() || app.isWriteAccessAllowed()) {
|
||||
if (!app.isUnitTestMode() && app.isDispatchThread() || app.isWriteAccessAllowed()) {
|
||||
LOG.error("May block indefinitely: shouldn't be called from EDT or under write lock");
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user