don't rely on the Integer cache for equality

This commit is contained in:
Dave Brosius 2014-03-18 20:54:29 -04:00
parent aabc43973e
commit 283175ee60
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import java.util.List;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.apache.cassandra.utils.btree.BTree;
@ -119,7 +120,7 @@ public class BTreeTest
assert vs.size() == count;
int i = 0;
for (Integer j : vs)
assert j == ints[i++];
assertEquals(j, ints[i++]);
}
}