lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject lucene-solr:master: fix javac cast warnings
Date Wed, 05 Oct 2016 10:13:46 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 45af6f0d2 -> b6610b9f0


fix javac cast warnings


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/b6610b9f
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/b6610b9f
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/b6610b9f

Branch: refs/heads/master
Commit: b6610b9f04d43dcd35f9d9633fc317960d67fe2a
Parents: 45af6f0
Author: Mike McCandless <mikemccand@apache.org>
Authored: Wed Oct 5 06:13:36 2016 -0400
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Wed Oct 5 06:13:36 2016 -0400

----------------------------------------------------------------------
 .../apache/lucene/codecs/lucene54/TestLucene54DocValuesFormat.java | 2 +-
 .../apache/lucene/codecs/lucene70/TestLucene70DocValuesFormat.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b6610b9f/lucene/core/src/test/org/apache/lucene/codecs/lucene54/TestLucene54DocValuesFormat.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/test/org/apache/lucene/codecs/lucene54/TestLucene54DocValuesFormat.java
b/lucene/core/src/test/org/apache/lucene/codecs/lucene54/TestLucene54DocValuesFormat.java
index dd7cdcc..c6ca201 100644
--- a/lucene/core/src/test/org/apache/lucene/codecs/lucene54/TestLucene54DocValuesFormat.java
+++ b/lucene/core/src/test/org/apache/lucene/codecs/lucene54/TestLucene54DocValuesFormat.java
@@ -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;

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b6610b9f/lucene/core/src/test/org/apache/lucene/codecs/lucene70/TestLucene70DocValuesFormat.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/test/org/apache/lucene/codecs/lucene70/TestLucene70DocValuesFormat.java
b/lucene/core/src/test/org/apache/lucene/codecs/lucene70/TestLucene70DocValuesFormat.java
index 4c27f1e..fae82e0 100644
--- a/lucene/core/src/test/org/apache/lucene/codecs/lucene70/TestLucene70DocValuesFormat.java
+++ b/lucene/core/src/test/org/apache/lucene/codecs/lucene70/TestLucene70DocValuesFormat.java
@@ -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;


Mime
View raw message