lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r806961 - /lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLetterTokenizer.java
Date Sun, 23 Aug 2009 12:39:29 GMT
Author: rmuir
Date: Sun Aug 23 12:39:28 2009
New Revision: 806961

URL: http://svn.apache.org/viewvc?rev=806961&view=rev
Log:
LUCENE-1826: the new tokenizer constructors should not allow deprecated charsets

Modified:
    lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLetterTokenizer.java

Modified: lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLetterTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLetterTokenizer.java?rev=806961&r1=806960&r2=806961&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLetterTokenizer.java
(original)
+++ lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLetterTokenizer.java
Sun Aug 23 12:39:28 2009
@@ -58,16 +58,16 @@
     	this(in, RussianCharsets.UnicodeRussian);
     }
 
-    public RussianLetterTokenizer(AttributeSource source, Reader in, char[] charset)
+    public RussianLetterTokenizer(AttributeSource source, Reader in)
     {
         super(source, in);
-        this.charset = charset;
+        this.charset = RussianCharsets.UnicodeRussian;
     }
 
-    public RussianLetterTokenizer(AttributeFactory factory, Reader in, char[] charset)
+    public RussianLetterTokenizer(AttributeFactory factory, Reader in)
     {
         super(factory, in);
-        this.charset = charset;
+        this.charset = RussianCharsets.UnicodeRussian;
     }
     
     /**



Mime
View raw message