- 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
This commit is contained in:
Otis Gospodnetic 2007-01-16 09:07:01 +00:00
parent 74e68c9287
commit 8cafdd9b64
1 changed files with 1 additions and 1 deletions

View File

@ -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;