Update of /var/cvs/contributions/lucene/src/org/mmbase/module/lucene
In directory james.mmbase.org:/tmp/cvs-serv6642

Modified Files:
        Searcher.java 
Log Message:
return type not always correct any more


See also: 
http://cvs.mmbase.org/viewcvs/contributions/lucene/src/org/mmbase/module/lucene


Index: Searcher.java
===================================================================
RCS file: 
/var/cvs/contributions/lucene/src/org/mmbase/module/lucene/Searcher.java,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- Searcher.java       21 Jul 2008 16:42:46 -0000      1.49
+++ Searcher.java       22 Jul 2008 05:00:29 -0000      1.50
@@ -34,7 +34,7 @@
  * A wrapper around Lucene's [EMAIL PROTECTED] 
org.apache.lucene.search.IndexSearcher}. Every [EMAIL PROTECTED] Indexer} has 
its own Searcher.
  *
  * @author Pierre van Rooden
- * @version $Id: Searcher.java,v 1.49 2008/07/21 16:42:46 michiel Exp $
+ * @version $Id: Searcher.java,v 1.50 2008/07/22 05:00:29 michiel Exp $
  * @todo  Should the StopAnalyzers be replaced by index.analyzer? Something 
else?
  **/
 public class Searcher implements NewSearcher.Listener, 
FullIndexEvents.Listener {
@@ -216,7 +216,7 @@
             } catch (java.io.IOException ioe) {
                 log.service(ioe + " returning empty list", ioe);
                 needsNewSearcher = true;
-                return org.mmbase.bridge.util.BridgeCollections.EMPTY_NODELIST;
+                return Collections.emptyList();
             }
             if (log.isTraceEnabled()) {
                 log.trace("hits " + hits + (hits != null ? " (" + 
hits.length() + " results)" : ""));
@@ -255,7 +255,7 @@
                 }
             };
         } else {
-            list = Collections.EMPTY_LIST;
+            list = Collections.emptyList();
         }
         return list;
 
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to