From 6310d6e548df3eeeeb40e6c8beb0c69725d9218a Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Fri, 16 Mar 2012 13:05:59 +0400 Subject: [PATCH] disable debug in tests --- .../src/com/intellij/openapi/editor/impl/CharArray.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/core-impl/src/com/intellij/openapi/editor/impl/CharArray.java b/platform/core-impl/src/com/intellij/openapi/editor/impl/CharArray.java index 5e1867dfc861..dd62cb93109e 100644 --- a/platform/core-impl/src/com/intellij/openapi/editor/impl/CharArray.java +++ b/platform/core-impl/src/com/intellij/openapi/editor/impl/CharArray.java @@ -45,8 +45,7 @@ abstract class CharArray implements CharSequenceBackedByArray { private static final boolean DISABLE_DEFERRED_PROCESSING = Boolean.getBoolean("idea.document.deny.deferred.changes"); @SuppressWarnings("UseOfArchaicSystemPropertyAccessors") - private static final boolean DEBUG_DEFERRED_PROCESSING = LOG.isDebugEnabled() || Boolean.getBoolean("idea.document.debug.bulk.processing") - || ApplicationManager.getApplication() != null && ApplicationManager.getApplication().isUnitTestMode(); + private static final boolean DEBUG_DEFERRED_PROCESSING = LOG.isDebugEnabled() || Boolean.getBoolean("idea.document.debug.bulk.processing"); /** * We can't exclude possibility of situation when 'defer changes' state is {@link #setDeferredChangeMode(boolean) entered} * but not exited, hence, we want to perform automatic flushing if necessary in order to avoid memory leaks. This constant holds