mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
github: assert -> warning
This is bad, but will be fixed later
This commit is contained in:
@@ -94,7 +94,9 @@ public class GithubApiUtil {
|
||||
@Nullable String requestBody,
|
||||
@NotNull Collection<Header> headers,
|
||||
@NotNull HttpVerb verb) throws IOException {
|
||||
LOG.assertTrue(!EventQueue.isDispatchThread() || ApplicationManager.getApplication().isUnitTestMode(), "Network operation in EDT");
|
||||
if (EventQueue.isDispatchThread() && !ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
LOG.warn("Network operation in EDT");
|
||||
}
|
||||
|
||||
HttpMethod method = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user