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:
Uwe Schindler 2014-03-13 08:34:51 +00:00
parent 13302cdf41
commit 2728842662
1 changed files with 2 additions and 2 deletions

View File

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