From 8cafdd9b649d0dd67f63c6041ecea8402e17adc1 Mon Sep 17 00:00:00 2001 From: Otis Gospodnetic Date: Tue, 16 Jan 2007 09:07:01 +0000 Subject: [PATCH] - Removed isEmpty() Java 6 method, so Andrzej can compile Luke git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@496628 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java index 3c32be2c19c..b1018f7b8df 100644 --- a/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java +++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java @@ -88,7 +88,7 @@ public class EdgeNGramTokenizer extends Tokenizer { } 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;