lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r154080 - in lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight: Highlighter.java SpanGradientFormatter.java TokenSources.java
Date Wed, 16 Feb 2005 20:20:17 GMT
Author: dnaber
Date: Wed Feb 16 12:20:15 2005
New Revision: 154080

URL: http://svn.apache.org/viewcvs?view=rev&rev=154080
Log:
clean up imports, remove unused variables and remove the declaration of an Exception that
was never thrown

Modified:
    lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java
    lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/SpanGradientFormatter.java
    lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java

Modified: lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java?view=diff&r1=154079&r2=154080
==============================================================================
--- lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java
(original)
+++ lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java
Wed Feb 16 12:20:15 2005
@@ -108,7 +108,6 @@
 
 		//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 @@
 			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();

Modified: lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/SpanGradientFormatter.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/SpanGradientFormatter.java?view=diff&r1=154079&r2=154080
==============================================================================
--- lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/SpanGradientFormatter.java
(original)
+++ lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/SpanGradientFormatter.java
Wed Feb 16 12:20:15 2005
@@ -24,8 +24,6 @@
  * @author David Spencer dave@searchmorph.com
  */
 
-import org.apache.lucene.search.highlight.*;
-
 public class SpanGradientFormatter
 	extends GradientFormatter
 {

Modified: lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java?view=diff&r1=154079&r2=154080
==============================================================================
--- lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java
(original)
+++ lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java
Wed Feb 16 12:20:15 2005
@@ -100,7 +100,7 @@
             {
                 this.tokens=tokens;
             }
-            public Token next() throws IOException
+            public Token next()
             {
                 if(currentToken>=tokens.length)
                 {



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message