lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r600986 - /lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java
Date Tue, 04 Dec 2007 15:56:58 GMT
Author: gsingers
Date: Tue Dec  4 07:56:57 2007
New Revision: 600986

URL: http://svn.apache.org/viewvc?rev=600986&view=rev
Log:
Added some convenience constructors

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=600986&r1=600985&r2=600986&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 Tue Dec  4 07:56:57
2007
@@ -21,6 +21,14 @@
     if (this.lst == null) this.lst = new ArrayList/*<Token>*/();
   }
 
+  public SinkTokenizer() {
+    this.lst = new ArrayList();
+  }
+
+  public SinkTokenizer(int initCap){
+    this.lst = new ArrayList(initCap);
+  }
+
   /**
    * Get the tokens in the internal List.
    * <p/>



Mime
View raw message