From 8d45546b7269715abed86e15f533818ff925ee38 Mon Sep 17 00:00:00 2001 From: Daniel Naber Date: Mon, 8 Nov 2004 00:10:39 +0000 Subject: [PATCH] fix javadoc git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150631 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/search/FuzzyQuery.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/lucene/search/FuzzyQuery.java b/src/java/org/apache/lucene/search/FuzzyQuery.java index 027a1c03d17..b67057bbb1e 100644 --- a/src/java/org/apache/lucene/search/FuzzyQuery.java +++ b/src/java/org/apache/lucene/search/FuzzyQuery.java @@ -46,8 +46,8 @@ public final class FuzzyQuery extends MultiTermQuery { * as the query term is considered similar to the query term if the edit distance * between both terms is less than length(term)*0.5 * @param prefixLength length of common (non-fuzzy) prefix - * @throws IllegalArgumentException if minimumSimilarity is > 1 or < 0 - * or if prefixLength < 0 or > term.text().length(). + * @throws IllegalArgumentException if minimumSimilarity is >= 1 or < 0 + * or if prefixLength < 0 */ public FuzzyQuery(Term term, float minimumSimilarity, int prefixLength) throws IllegalArgumentException { super(term); @@ -56,10 +56,10 @@ public final class FuzzyQuery extends MultiTermQuery { throw new IllegalArgumentException("minimumSimilarity >= 1"); else if (minimumSimilarity < 0.0f) throw new IllegalArgumentException("minimumSimilarity < 0"); + if (prefixLength < 0) + throw new IllegalArgumentException("prefixLength < 0"); this.minimumSimilarity = minimumSimilarity; - if(prefixLength < 0) - throw new IllegalArgumentException("prefixLength < 0"); this.prefixLength = prefixLength; }