mirror of https://github.com/apache/lucene.git
LUCENE-5519: Fix generics
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1577062 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
13302cdf41
commit
2728842662
|
@ -499,7 +499,7 @@ public final class Util {
|
|||
T finalOutput = fst.outputs.add(path.cost, path.arc.output);
|
||||
if (acceptResult(path.input, finalOutput)) {
|
||||
//System.out.println(" add result: " + path);
|
||||
results.add(new Result(path.input, finalOutput));
|
||||
results.add(new Result<>(path.input, finalOutput));
|
||||
} else {
|
||||
rejectCount++;
|
||||
}
|
||||
|
@ -512,7 +512,7 @@ public final class Util {
|
|||
}
|
||||
}
|
||||
}
|
||||
return new TopResults(rejectCount + topN <= maxQueueDepth, results);
|
||||
return new TopResults<>(rejectCount + topN <= maxQueueDepth, results);
|
||||
}
|
||||
|
||||
protected boolean acceptResult(IntsRef input, T output) {
|
||||
|
|
Loading…
Reference in New Issue