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:
Robert Muir 2015-04-28 10:26:27 +00:00
parent 3cf23b3420
commit 28cae51539
3 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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