mirror of https://github.com/apache/lucene.git
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:
parent
25f82f4458
commit
45864d1c9c
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -100,7 +100,7 @@ public class TokenSources
|
|||
{
|
||||
this.tokens=tokens;
|
||||
}
|
||||
public Token next() throws IOException
|
||||
public Token next()
|
||||
{
|
||||
if(currentToken>=tokens.length)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue