fix javac cast warnings

This commit is contained in:
Mike McCandless 2016-10-05 06:13:36 -04:00
parent 45af6f0d26
commit b6610b9f04
2 changed files with 2 additions and 2 deletions

View File

@ -471,7 +471,7 @@ public class TestLucene54DocValuesFormat extends BaseCompressingDocValuesFormatT
// advance
for (int i = 0; i < 2000; ++i) {
final int target = TestUtil.nextInt(random(), 0, (int) maxDoc);
final int target = TestUtil.nextInt(random(), 0, maxDoc);
int index = Arrays.binarySearch(docIds, target);
if (index < 0) {
index = -1 - index;

View File

@ -472,7 +472,7 @@ public class TestLucene70DocValuesFormat extends BaseCompressingDocValuesFormatT
// advance
for (int i = 0; i < 2000; ++i) {
final int target = TestUtil.nextInt(random(), 0, (int) maxDoc);
final int target = TestUtil.nextInt(random(), 0, maxDoc);
int index = Arrays.binarySearch(docIds, target);
if (index < 0) {
index = -1 - index;