From 7b379ea65b9756e975816fb1660dd8b60601b174 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Thu, 8 Mar 2012 11:20:50 +0000 Subject: [PATCH] LUCENE-3850: Removed some of the rawtypes compiler warnings git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1298363 13f79535-47bb-0310-9956-ffa450edef68 --- .../join/ToParentBlockJoinCollector.java | 27 ++++---------- .../lucene/search/join/TestBlockJoin.java | 36 +++++++------------ 2 files changed, 18 insertions(+), 45 deletions(-) diff --git a/modules/join/src/java/org/apache/lucene/search/join/ToParentBlockJoinCollector.java b/modules/join/src/java/org/apache/lucene/search/join/ToParentBlockJoinCollector.java index 0bc310d0f12..63d4af322b7 100644 --- a/modules/join/src/java/org/apache/lucene/search/join/ToParentBlockJoinCollector.java +++ b/modules/join/src/java/org/apache/lucene/search/join/ToParentBlockJoinCollector.java @@ -17,33 +17,17 @@ package org.apache.lucene.search.join; * limitations under the License. */ -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.LinkedList; -import java.util.Map; -import java.util.Queue; - import org.apache.lucene.index.AtomicReaderContext; -import org.apache.lucene.index.IndexReader; -import org.apache.lucene.index.IndexWriter; // javadocs -import org.apache.lucene.search.Collector; -import org.apache.lucene.search.FieldComparator; -import org.apache.lucene.search.FieldValueHitQueue; -import org.apache.lucene.search.Query; -import org.apache.lucene.search.ScoreCachingWrappingScorer; -import org.apache.lucene.search.Scorer; +import org.apache.lucene.index.IndexWriter; +import org.apache.lucene.search.*; import org.apache.lucene.search.Scorer.ChildScorer; -import org.apache.lucene.search.Sort; -import org.apache.lucene.search.TopDocs; -import org.apache.lucene.search.TopDocsCollector; -import org.apache.lucene.search.TopFieldCollector; -import org.apache.lucene.search.TopScoreDocCollector; -import org.apache.lucene.search.Weight; import org.apache.lucene.search.grouping.GroupDocs; import org.apache.lucene.search.grouping.TopGroups; import org.apache.lucene.util.ArrayUtil; +import java.io.IOException; +import java.util.*; + /** Collects parent document hits for a Query containing one more more * BlockJoinQuery clauses, sorted by the @@ -399,6 +383,7 @@ public class ToParentBlockJoinCollector extends Collector { final FakeScorer fakeScorer = new FakeScorer(); + @SuppressWarnings({"unchecked","rawtypes"}) final GroupDocs[] groups = new GroupDocs[sortedGroups.length - offset]; for(int groupIDX=offset;groupIDX