Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/spell/api/SpellCheckIndexer.java |
— | — | @@ -339,6 +339,7 @@ |
340 | 340 | |
341 | 341 | /** Set omitNorms on all fields of the document */ |
342 | 342 | protected void setOmitNorms(Document doc){ |
| 343 | + @SuppressWarnings("rawtypes") //Iterator<Field> |
343 | 344 | Iterator it = doc.getFields().iterator(); |
344 | 345 | while(it.hasNext()){ |
345 | 346 | ((Field)it.next()).setOmitNorms(true); |
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/spell/CleanIndexImporter.java |
— | — | @@ -5,6 +5,7 @@ |
6 | 6 | import java.util.Date; |
7 | 7 | import java.util.Hashtable; |
8 | 8 | import java.util.Iterator; |
| 9 | +import java.util.Map; |
9 | 10 | import java.util.Map.Entry; |
10 | 11 | import org.apache.log4j.Logger; |
11 | 12 | import org.mediawiki.importer.DumpWriter; |
— | — | @@ -91,10 +92,10 @@ |
92 | 93 | // nop |
93 | 94 | } |
94 | 95 | public void writeSiteinfo(Siteinfo info) throws IOException { |
95 | | - Iterator it = info.Namespaces.orderedEntries(); |
| 96 | + Iterator<Map.Entry<Integer,String>> it = info.Namespaces.orderedEntries(); |
96 | 97 | while(it.hasNext()){ |
97 | 98 | |
98 | | - Entry<Integer,String> pair = (Entry<Integer,String>)it.next(); |
| 99 | + Entry<Integer,String> pair = it.next(); |
99 | 100 | Localization.addCustomMapping(pair.getValue(),pair.getKey(),iid.getDB().getDBname()); |
100 | 101 | } |
101 | 102 | } |