- Cosmetics

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@641497 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2008-03-26 19:22:28 +00:00
parent 8af3598b74
commit 758e123591
1 changed files with 3 additions and 2 deletions

View File

@ -100,14 +100,15 @@ public final class StopFilter extends TokenFilter {
/**
*
* @param stopWords
* @param stopWords
* @param ignoreCase If true, all words are lower cased first.
* @return a Set containing the words
*/
public static final Set makeStopSet(String[] stopWords, boolean ignoreCase) {
CharArraySet stopSet = new CharArraySet(stopWords.length, ignoreCase);
stopSet.addAll(Arrays.asList(stopWords));
return stopSet; }
return stopSet;
}
/**
* Returns the next input Token whose termText() is not a stop word.