From 103701b6bf75654145ea3e97baadbae91c360826 Mon Sep 17 00:00:00 2001 From: "peter.gromov" Date: Wed, 10 Nov 2010 21:52:55 +0300 Subject: [PATCH] less destructive assertions --- .../codeInsight/completion/CompletionProgressIndicator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionProgressIndicator.java b/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionProgressIndicator.java index 629c37434e2a..fc360e0b4295 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionProgressIndicator.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionProgressIndicator.java @@ -436,7 +436,7 @@ public class CompletionProgressIndicator extends ProgressIndicatorBase implement } private void finishCompletionProcess() { - assert myToRestart == null; + LOG.assertTrue(myToRestart == null); myToRestart = false; cancel(); @@ -531,7 +531,7 @@ public class CompletionProgressIndicator extends ProgressIndicatorBase implement public void cancelByWriteAction() { if (myToRestart != null) { - assert myToRestart == Boolean.FALSE; //explicit completionFinished was invoked before this write action + LOG.assertTrue(myToRestart == Boolean.FALSE); //explicit completionFinished was invoked before this write action return; }