Apache Solr open-source search software
clean up imports, remove unused variables and remove the declaration of an Exception that was never thrown
Daniel Naber45864d1c9c1d
diff --git a/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java b/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.javaindex bc43095c3f5..1d6a1feaefe 100644--- a/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java+++ b/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java@@ -108,7 +108,6 @@ public class Highlighter//Get textArrayList 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 HighlightercurrentFrag.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();diff --git a/contrib/highlighter/src/java/org/apache/lucene/search/highlight/SpanGradientFormatter.java b/contrib/highlighter/src/java/org/apache/lucene/search/highlight/SpanGradientFormatter.javaindex a2f0f01fb42..457012af562 100755--- a/contrib/highlighter/src/java/org/apache/lucene/search/highlight/SpanGradientFormatter.java+++ b/contrib/highlighter/src/java/org/apache/lucene/search/highlight/SpanGradientFormatter.java@@ -24,8 +24,6 @@ package org.apache.lucene.search.highlight;* @author David Spencer [email protected]*/-import org.apache.lucene.search.highlight.*;-public class SpanGradientFormatterextends GradientFormatter{diff --git a/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java b/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.javaindex 69b0bfcd15f..2f4e16e4983 100644--- a/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java+++ b/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java@@ -100,7 +100,7 @@ public class TokenSources{this.tokens=tokens;}- public Token next() throws IOException+ public Token next(){if(currentToken>=tokens.length){