lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1676464 - in /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search: DisiPriorityQueue.java MinShouldMatchSumScorer.java spans/SpanOrQuery.java
Date Tue, 28 Apr 2015 10:26:27 GMT
Author: rmuir
Date: Tue Apr 28 10:26:27 2015
New Revision: 1676464

URL: http://svn.apache.org/r1676464
Log:
LUCENE-6373: cleanup unused variable and generic array warnings

Modified:
    lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/DisiPriorityQueue.java
    lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/MinShouldMatchSumScorer.java
    lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/spans/SpanOrQuery.java

Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/DisiPriorityQueue.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/DisiPriorityQueue.java?rev=1676464&r1=1676463&r2=1676464&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/DisiPriorityQueue.java
(original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/DisiPriorityQueue.java
Tue Apr 28 10:26:27 2015
@@ -46,6 +46,7 @@ implements Iterable<DisiWrapper<Iter>> {
   private final DisiWrapper<Iter>[] heap;
   private int size;
 
+  @SuppressWarnings({"unchecked","rawtypes"})
   public DisiPriorityQueue(int maxSize) {
     heap = new DisiWrapper[maxSize];
     size = 0;

Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/MinShouldMatchSumScorer.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/MinShouldMatchSumScorer.java?rev=1676464&r1=1676463&r2=1676464&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/MinShouldMatchSumScorer.java
(original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/MinShouldMatchSumScorer.java
Tue Apr 28 10:26:27 2015
@@ -98,6 +98,7 @@ final class MinShouldMatchSumScorer exte
   final Collection<ChildScorer> childScorers;
   final long cost;
 
+  @SuppressWarnings({"unchecked","rawtypes"})
   MinShouldMatchSumScorer(Weight weight, Collection<Scorer> scorers, int minShouldMatch,
float[] coord) {
     super(weight);
 

Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/spans/SpanOrQuery.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/spans/SpanOrQuery.java?rev=1676464&r1=1676463&r2=1676464&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/spans/SpanOrQuery.java
(original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/spans/SpanOrQuery.java
Tue Apr 28 10:26:27 2015
@@ -288,8 +288,6 @@ public class SpanOrQuery extends SpanQue
         
       @Override
       public int nextStartPosition() throws IOException {
-        DisiWrapper<Spans> topDocSpans = byDocQueue.top();
-        assert topDocSpans.doc != NO_MORE_DOCS;
         if (topPositionSpans == null) {
           byPositionQueue.clear();
           fillPositionQueue(); // fills byPositionQueue at first position



Mime
View raw message