lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject svn commit: r496628 - /lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java
Date Tue, 16 Jan 2007 09:07:02 GMT
Author: otis
Date: Tue Jan 16 01:07:01 2007
New Revision: 496628

URL: http://svn.apache.org/viewvc?view=rev&rev=496628
Log:
- Removed isEmpty() Java 6 method, so Andrzej can compile Luke

Modified:
    lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java

Modified: lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java?view=diff&rev=496628&r1=496627&r2=496628
==============================================================================
--- lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java
(original)
+++ lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java
Tue Jan 16 01:07:01 2007
@@ -88,7 +88,7 @@
   }
 
   static Side side(String label) {
-    if (label == null || label.isEmpty())
+    if (label == null || label.trim().length() == 0)
       throw new IllegalArgumentException("Label must be either 'front' or 'back'");
     if (label.equals("front"))
       return Side.FRONT;



Mime
View raw message