Revision: 17533
          http://sourceforge.net/p/gate/code/17533
Author:   markagreenwood
Date:     2014-03-04 18:13:52 +0000 (Tue, 04 Mar 2014)
Log Message:
-----------
fixed generics warnings for all the WeakHashMap instances we use

Modified Paths:
--------------
    
gate/trunk/src/main/gate/creole/annic/apache/lucene/search/FieldCacheImpl.java
    
gate/trunk/src/main/gate/creole/annic/apache/lucene/search/FieldSortedHitQueue.java

Modified: 
gate/trunk/src/main/gate/creole/annic/apache/lucene/search/FieldCacheImpl.java
===================================================================
--- 
gate/trunk/src/main/gate/creole/annic/apache/lucene/search/FieldCacheImpl.java  
    2014-03-04 18:11:10 UTC (rev 17532)
+++ 
gate/trunk/src/main/gate/creole/annic/apache/lucene/search/FieldCacheImpl.java  
    2014-03-04 18:13:52 UTC (rev 17533)
@@ -89,7 +89,7 @@
 
 
   /** The internal cache. Maps Entry to array of interpreted term values. **/
-  final Map cache = new WeakHashMap();
+  final Map<Entry, Object> cache = new WeakHashMap<Entry, Object>();
 
   /** See if an object is in the cache. */
   Object lookup (IndexReader reader, String field, int type) {

Modified: 
gate/trunk/src/main/gate/creole/annic/apache/lucene/search/FieldSortedHitQueue.java
===================================================================
--- 
gate/trunk/src/main/gate/creole/annic/apache/lucene/search/FieldSortedHitQueue.java
 2014-03-04 18:11:10 UTC (rev 17532)
+++ 
gate/trunk/src/main/gate/creole/annic/apache/lucene/search/FieldSortedHitQueue.java
 2014-03-04 18:13:52 UTC (rev 17533)
@@ -17,6 +17,7 @@
  */
 
 import gate.creole.annic.apache.lucene.index.IndexReader;
+import gate.creole.annic.apache.lucene.search.FieldCacheImpl.Entry;
 import gate.creole.annic.apache.lucene.util.PriorityQueue;
 
 import java.io.IOException;
@@ -127,7 +128,7 @@
 
   /** Internal cache of comparators. Similar to FieldCache, only
    *  caches comparators instead of term values. */
-  static final Map Comparators = new WeakHashMap();
+  static final Map<Entry, Object> Comparators = new WeakHashMap<Entry, 
Object>();
 
   /** Returns a comparator if it is in the cache. */
   static ScoreDocComparator lookup (IndexReader reader, String field, int 
type, Object factory) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to