git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@179637 13f79535-47bb-0310-9956-ffa450edef68

This commit is contained in:
Mark Harwood 2005-06-02 20:27:06 +00:00
parent b305174366
commit 07cee0b287
1 changed files with 16 additions and 14 deletions

View File

@ -33,6 +33,8 @@ public class TokenGroup
void addToken(Token token, float score) void addToken(Token token, float score)
{
if(numTokens < MAX_NUM_TOKENS_PER_GROUP)
{ {
if(numTokens==0) if(numTokens==0)
{ {
@ -48,6 +50,7 @@ public class TokenGroup
scores[numTokens]=score; scores[numTokens]=score;
numTokens++; numTokens++;
} }
}
boolean isDistinct(Token token) boolean isDistinct(Token token)
{ {
@ -116,5 +119,4 @@ public class TokenGroup
} }
return total; return total;
} }
} }