Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/spell/CleanIndexImporter.java |
— | — | @@ -93,6 +93,7 @@ |
94 | 94 | public void writeSiteinfo(Siteinfo info) throws IOException { |
95 | 95 | Iterator it = info.Namespaces.orderedEntries(); |
96 | 96 | while(it.hasNext()){ |
| 97 | + |
97 | 98 | Entry<Integer,String> pair = (Entry<Integer,String>)it.next(); |
98 | 99 | Localization.addCustomMapping(pair.getValue(),pair.getKey(),iid.getDB().getDBname()); |
99 | 100 | } |
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/highlight/Highlight.java |
— | — | @@ -403,7 +403,7 @@ |
404 | 404 | return Math.log(numDocs/(double)(docFreq+1)) + 1.0; |
405 | 405 | } |
406 | 406 | |
407 | | - @SuppressWarnings("unchecked") |
| 407 | + |
408 | 408 | protected static HashMap<String,Double> getTermsNotInTitle(HashMap<String,Double> weightTerm, Alttitles alttitles, HashMap<String,Integer> wordIndex){ |
409 | 409 | Alttitles.Info info = alttitles.getTitle(); |
410 | 410 | ArrayList<ExtToken> tokens = info.getTokens(); |
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/ranks/Links.java |
— | — | @@ -641,7 +641,7 @@ |
642 | 642 | /** Get all contexts in which article <i>to<i/> is linked from <i>from</i>. |
643 | 643 | * Will return null if there is no context, or link is invalid. |
644 | 644 | * @throws ClassNotFoundException */ |
645 | | - @SuppressWarnings("unchecked") |
| 645 | + |
646 | 646 | public ArrayList<String> getContext(String from, String to) throws IOException { |
647 | 647 | ensureRead(); |
648 | 648 | String cacheKey = "getContext:"+from; |
— | — | @@ -741,7 +741,7 @@ |
742 | 742 | /** Get all contexts in which article <i>to<i/> is linked from <i>from</i>. |
743 | 743 | * Will return null if there is no context, or link is invalid. |
744 | 744 | * @throws ClassNotFoundException */ |
745 | | - @SuppressWarnings("unchecked") |
| 745 | + |
746 | 746 | public Collection<String> getContextOld(String from, String to) throws IOException { |
747 | 747 | ensureRead(); |
748 | 748 | |