diff cmdline/org/tmatesoft/hg/console/Incoming.java @ 174:b1de83ffa7f8

Build shall succeed with no precompiled classes, too
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 30 Mar 2011 02:43:15 +0200
parents 4bf061a7c001
children a8df7162ec75
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Incoming.java	Tue Mar 29 02:20:02 2011 +0200
+++ b/cmdline/org/tmatesoft/hg/console/Incoming.java	Wed Mar 30 02:43:15 2011 +0200
@@ -30,8 +30,6 @@
 import java.util.List;
 import java.util.Map.Entry;
 
-import junit.framework.Assert;
-
 import org.tmatesoft.hg.core.Nodeid;
 import org.tmatesoft.hg.repo.HgChangelog;
 import org.tmatesoft.hg.repo.HgRemoteRepository.RemoteBranch;
@@ -307,7 +305,9 @@
 			for (int i = 1, x = 0; root+i < head; i = i << 1, x++) {
 				int value = data[x];
 				int value_check = root+i;
-				Assert.assertEquals(value, value_check);
+				if (value != value_check) {
+					throw new IllegalStateException();
+				}
 				int wordIx = (root + i) >>> 5;
 				int bitIx = (root + i) & 0x1f;
 				finalSequence[wordIx] |= 1 << (31-bitIx);