lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r811984 - /lucene/java/trunk/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/TestShingleMatrixFilter.java
Date Mon, 07 Sep 2009 03:29:38 GMT
Author: markrmiller
Date: Mon Sep  7 03:29:38 2009
New Revision: 811984

URL: http://svn.apache.org/viewvc?rev=811984&view=rev
Log:
cleanup unused reusableToken instances that were left behind

Modified:
    lucene/java/trunk/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/TestShingleMatrixFilter.java

Modified: lucene/java/trunk/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/TestShingleMatrixFilter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/TestShingleMatrixFilter.java?rev=811984&r1=811983&r2=811984&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/TestShingleMatrixFilter.java
(original)
+++ lucene/java/trunk/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/TestShingleMatrixFilter.java
Mon Sep  7 03:29:38 2009
@@ -73,7 +73,6 @@
 
     ts = new ShingleMatrixFilter(tls, 1, 2, new Character(' '), false, new ShingleMatrixFilter.OneDimensionalNonWeightedTokenSettingsCodec());
 
-    Token reusableToken = new Token();
 
     assertNext(ts, "please", 0, 6);
     assertNext(ts, "please divide", 0, 13);
@@ -119,7 +118,6 @@
 
     ts = new ShingleMatrixFilter(tls, 2, 2, new Character('_'), false, new ShingleMatrixFilter.TwoDimensionalNonWeightedSynonymTokenSettingsCodec());
 
-    final Token reusableToken = new Token();
     assertNext(ts, "hello_world");
     assertNext(ts, "greetings_world");
     assertNext(ts, "hello_earth");
@@ -371,7 +369,6 @@
 //      token.clear();
 //    }
 
-    final Token reusableToken = new Token();
     assertNext(ts, "no_surprise", 1, 1.4142135f, 0, 0);
     assertNext(ts, "no_surprise_to", 1, 1.7320508f, 0, 0);
     assertNext(ts, "no_surprise_to_see", 1, 2.0f, 0, 0);



Mime
View raw message