clean up imports, remove unused variables and remove the declaration of an Exception that was never thrown

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@154080 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2005-02-16 20:20:15 +00:00
parent 25f82f4458
commit 45864d1c9c
3 changed files with 1 additions and 5 deletions

View File

@ -108,7 +108,6 @@ public class Highlighter
//Get text
ArrayList fragTexts = new ArrayList();
int n = 0;
for (int i = 0; i < frag.length; i++)
{
if ((frag[i] != null) && (frag[i].getScore() > 0))
@ -217,7 +216,6 @@ public class Highlighter
currentFrag.textEndPos = newText.length();
//sort the most relevant sections of the text
int minScore = 0;
for (Iterator i = docFrags.iterator(); i.hasNext();)
{
currentFrag = (TextFragment) i.next();

View File

@ -24,8 +24,6 @@ package org.apache.lucene.search.highlight;
* @author David Spencer dave@searchmorph.com
*/
import org.apache.lucene.search.highlight.*;
public class SpanGradientFormatter
extends GradientFormatter
{

View File

@ -100,7 +100,7 @@ public class TokenSources
{
this.tokens=tokens;
}
public Token next() throws IOException
public Token next()
{
if(currentToken>=tokens.length)
{