mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
assertion replaced with LOG.error
This commit is contained in:
+4
-5
@@ -979,12 +979,11 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App
|
||||
@Override
|
||||
public void assertReadAccessAllowed() {
|
||||
if (!isReadAccessAllowed()) {
|
||||
throw new RuntimeException(
|
||||
LOG.error(
|
||||
"Read access is allowed from event dispatch thread or inside read-action only" +
|
||||
" (see com.intellij.openapi.application.Application.runReadAction())" +
|
||||
" Current thread: " + describe(Thread.currentThread()) +
|
||||
"; dispatch thread: " + EventQueue.isDispatchThread() +"; isDispatchThread(): "+isDispatchThread() +
|
||||
" SystemEventQueueThread: " + describe(getEventQueueThread()));
|
||||
" (see com.intellij.openapi.application.Application.runReadAction())",
|
||||
"Current thread: " + describe(Thread.currentThread()), "; dispatch thread: " + EventQueue.isDispatchThread() +"; isDispatchThread(): "+isDispatchThread(),
|
||||
"SystemEventQueueThread: " + describe(getEventQueueThread()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user