patch from Mark, while his account creation is pending

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2004-05-05 19:43:00 +00:00
parent d9684c7065
commit ac0f42f29a
1 changed files with 6 additions and 5 deletions

View File

@ -46,11 +46,12 @@ public class TextFragment
/**
* @param frag2 Fragment to be merged into this one
*/
public void merge(TextFragment frag2)
{
textEndPos = frag2.textEndPos;
}
/**
public void merge(TextFragment frag2)
{
textEndPos = frag2.textEndPos;
score=Math.max(score,frag2.score);
}
/**
* @param fragment
* @return true if this fragment follows the one passed
*/