mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DumbServiceImpl: don't evaluate heavy task.toString when not needed (IDEA-198484)
This commit is contained in:
@@ -235,7 +235,9 @@ public class DumbServiceImpl extends DumbService implements Disposable, Modifica
|
||||
@Override
|
||||
public void queueTask(@NotNull DumbModeTask task) {
|
||||
if (LOG.isDebugEnabled()) LOG.debug("Scheduling task " + task);
|
||||
LOG.assertTrue(!myProject.isDefault(), "No indexing tasks should be created for default project: " + task);
|
||||
if (myProject.isDefault()) {
|
||||
LOG.error("No indexing tasks should be created for default project: " + task);
|
||||
}
|
||||
final Application application = ApplicationManager.getApplication();
|
||||
|
||||
if (application.isUnitTestMode() || application.isHeadlessEnvironment()) {
|
||||
|
||||
Reference in New Issue
Block a user