mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
less destructive assertions
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user