mirror of https://github.com/apache/lucene.git
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:
parent
9798ad2498
commit
8318dff526
|
@ -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"))
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue