- Cosmetics

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@513870 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2007-03-02 17:58:48 +00:00
parent e356ea4ce6
commit f3bd9ebc57
1 changed files with 1 additions and 5 deletions

View File

@ -67,8 +67,6 @@ public class SynonymFilter extends TokenFilter {
* merging token streams to preserve token positions.
* - preserve original positionIncrement of first matched token
*/
public Token next() throws IOException {
while (true) {
// if there are any generated tokens, return them... don't try any
@ -173,8 +171,6 @@ public class SynonymFilter extends TokenFilter {
buffer.addFirst(t);
}
private SynonymMap match(SynonymMap map) throws IOException {
SynonymMap result = null;
@ -186,7 +182,7 @@ public class SynonymFilter extends TokenFilter {
SynonymMap subMap = (SynonymMap)map.submap.get(str);
if (subMap !=null) {
if (subMap != null) {
// recurse
result = match(subMap);
}