lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1227040 - in /lucene/dev/branches/lucene3305: modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/ solr/contrib/analysis-extras/src/java/org/apache/solr/analysis/
Date Wed, 04 Jan 2012 03:33:09 GMT
Author: rmuir
Date: Wed Jan  4 03:33:08 2012
New Revision: 1227040

URL: http://svn.apache.org/viewvc?rev=1227040&view=rev
Log:
LUCENE-3305: clear nocommit

Modified:
    lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiAnalyzer.java
    lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiTokenizer.java
    lucene/dev/branches/lucene3305/solr/contrib/analysis-extras/src/java/org/apache/solr/analysis/KuromojiTokenizerFactory.java

Modified: lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiAnalyzer.java?rev=1227040&r1=1227039&r2=1227040&view=diff
==============================================================================
--- lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiAnalyzer.java
(original)
+++ lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiAnalyzer.java
Wed Jan  4 03:33:08 2012
@@ -17,7 +17,6 @@ package org.apache.lucene.analysis.kurom
  * limitations under the License.
  */
 
-import java.io.IOException;
 import java.io.Reader;
 
 import org.apache.lucene.analysis.Analyzer;
@@ -32,13 +31,7 @@ public class KuromojiAnalyzer extends An
   
   @Override
   protected TokenStreamComponents createComponents(String fieldName, Reader reader) {
-    Tokenizer tokenizer;
-    try {
-      tokenizer = new KuromojiTokenizer(this.tokenizer, reader);
-      return new TokenStreamComponents(tokenizer, tokenizer);
-    } catch (IOException e) {
-      // nocommit
-      throw new RuntimeException(e);
-    }
+    Tokenizer tokenizer = new KuromojiTokenizer(this.tokenizer, reader);
+    return new TokenStreamComponents(tokenizer, tokenizer);
   }
 }

Modified: lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiTokenizer.java?rev=1227040&r1=1227039&r2=1227040&view=diff
==============================================================================
--- lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiTokenizer.java
(original)
+++ lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiTokenizer.java
Wed Jan  4 03:33:08 2012
@@ -17,7 +17,6 @@ package org.apache.lucene.analysis.kurom
  * limitations under the License.
  */
 
-import java.io.IOException;
 import java.io.Reader;
 import java.text.BreakIterator;
 import java.util.List;
@@ -39,7 +38,7 @@ public final class KuromojiTokenizer ext
   private int tokenIndex = 0;
   private int sentenceStart = 0;
   
-  public KuromojiTokenizer(org.apache.lucene.analysis.kuromoji.Tokenizer tokenizer, Reader
input) throws IOException {
+  public KuromojiTokenizer(org.apache.lucene.analysis.kuromoji.Tokenizer tokenizer, Reader
input) {
     super(input, (BreakIterator) proto.clone());
     this.tokenizer = tokenizer;
   }

Modified: lucene/dev/branches/lucene3305/solr/contrib/analysis-extras/src/java/org/apache/solr/analysis/KuromojiTokenizerFactory.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3305/solr/contrib/analysis-extras/src/java/org/apache/solr/analysis/KuromojiTokenizerFactory.java?rev=1227040&r1=1227039&r2=1227040&view=diff
==============================================================================
--- lucene/dev/branches/lucene3305/solr/contrib/analysis-extras/src/java/org/apache/solr/analysis/KuromojiTokenizerFactory.java
(original)
+++ lucene/dev/branches/lucene3305/solr/contrib/analysis-extras/src/java/org/apache/solr/analysis/KuromojiTokenizerFactory.java
Wed Jan  4 03:33:08 2012
@@ -17,7 +17,6 @@ package org.apache.solr.analysis;
  * limitations under the License.
  */
 
-import java.io.IOException;
 import java.io.Reader;
 import java.util.Locale;
 import java.util.Map;
@@ -49,10 +48,6 @@ public class KuromojiTokenizerFactory ex
   
   @Override
   public Tokenizer create(Reader input) {
-    try {
-      return new KuromojiTokenizer(tokenizer, input);
-    } catch (IOException e) {
-      throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, e);
-    }
+    return new KuromojiTokenizer(tokenizer, input);
   }
 }
\ No newline at end of file



Mime
View raw message