mirror of https://github.com/apache/lucene.git
LUCENE-6373: cleanup unused variable and generic array warnings
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1676464 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3cf23b3420
commit
28cae51539
|
@ -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;
|
||||
|
|
|
@ -98,6 +98,7 @@ final class MinShouldMatchSumScorer extends Scorer {
|
|||
final Collection<ChildScorer> childScorers;
|
||||
final long cost;
|
||||
|
||||
@SuppressWarnings({"unchecked","rawtypes"})
|
||||
MinShouldMatchSumScorer(Weight weight, Collection<Scorer> scorers, int minShouldMatch, float[] coord) {
|
||||
super(weight);
|
||||
|
||||
|
|
|
@ -288,8 +288,6 @@ public class SpanOrQuery extends SpanQuery implements Cloneable {
|
|||
|
||||
@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
|
||||
|
|
Loading…
Reference in New Issue