You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by gs...@apache.org on 2007/12/06 15:43:00 UTC

svn commit: r601748 - /lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java

Author: gsingers
Date: Thu Dec  6 06:42:58 2007
New Revision: 601748

URL: http://svn.apache.org/viewvc?rev=601748&view=rev
Log:
LUCENE-1058: override the close method so it doesn't try to close the null Reader input

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java?rev=601748&r1=601747&r2=601748&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java Thu Dec  6 06:42:58 2007
@@ -64,6 +64,12 @@
     lst.add((Token) t.clone());
   }
 
+  public void close() throws IOException {
+    //nothing to close
+    input = null;
+    lst = null;
+  }
+
   /**
    * Reset the internal data structures to the start at the front of the list of tokens.  Should be called
    * if tokens were added to the list after an invocation of {@link #next(Token)}