Fix cast. IntelliJ didn't seem to care.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1598143 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2014-05-28 21:22:57 +00:00
parent d61e0f7527
commit df42236e4a
1 changed files with 2 additions and 1 deletions

View File

@ -103,6 +103,7 @@ public class ExpandComponent extends SearchComponent implements PluginInfoInitia
}
@SuppressWarnings("unchecked")
@Override
public void process(ResponseBuilder rb) throws IOException {
@ -220,7 +221,7 @@ public class ExpandComponent extends SearchComponent implements PluginInfoInitia
BytesRef bytesRef = new BytesRef();
CharsRef charsRef = new CharsRef();
FieldType fieldType = searcher.getSchema().getField(field).getType();
for (IntObjectCursor cursor : groups) {
for (IntObjectCursor cursor : (Iterable<IntObjectCursor>) groups) {
int ord = cursor.key;
TopDocsCollector topDocsCollector = (TopDocsCollector) cursor.value;
TopDocs topDocs = topDocsCollector.topDocs();