Fix rawtypes warning in java 7 and 8, make the SuppressWarnings more local

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1366823 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2012-07-29 12:08:32 +00:00
parent 9798ad2498
commit 8318dff526
1 changed files with 1 additions and 2 deletions

View File

@ -145,7 +145,6 @@ public class TestSubScorerFreqs extends LuceneTestCase {
}
}
@SuppressWarnings("unchecked")
@Test
public void testBooleanQuery() throws Exception {
TermQuery aQuery = new TermQuery(new Term("f", "a"));
@ -161,7 +160,7 @@ public class TestSubScorerFreqs extends LuceneTestCase {
query.add(inner, Occur.MUST);
query.add(aQuery, Occur.MUST);
query.add(dQuery, Occur.MUST);
Set<String>[] occurList = new Set[] {
@SuppressWarnings({"unchecked","rawtypes"}) Set<String>[] occurList = new Set[] {
Collections.singleton("MUST"),
new HashSet<String>(Arrays.asList("MUST", "SHOULD"))
};