lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r782619 - /lucene/solr/trunk/src/java/org/apache/solr/spelling/FileBasedSpellChecker.java
Date Mon, 08 Jun 2009 13:31:58 GMT
Author: markrmiller
Date: Mon Jun  8 13:31:57 2009
New Revision: 782619

URL: http://svn.apache.org/viewvc?rev=782619&view=rev
Log:
cleanup - searcher is set to null and closed if not null, but never set to not null

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/spelling/FileBasedSpellChecker.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/spelling/FileBasedSpellChecker.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/spelling/FileBasedSpellChecker.java?rev=782619&r1=782618&r2=782619&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/spelling/FileBasedSpellChecker.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/spelling/FileBasedSpellChecker.java Mon Jun
 8 13:31:57 2009
@@ -80,7 +80,6 @@
 
   @SuppressWarnings("unchecked")
   private void loadExternalFileDictionary(IndexSchema schema, SolrResourceLoader loader)
{
-    IndexSearcher searcher = null;
     try {
 
       // Get the field's analyzer
@@ -119,13 +118,6 @@
 
     } catch (IOException e) {
       log.error( "Unable to load spellings", e);
-    } finally {
-      try {
-        if (searcher != null)
-          searcher.close();
-      } catch (IOException e) {
-        // Ignore
-      }
     }
   }
 



Mime
View raw message