From 53dcf2c3207576855628b56b4ec12a99b7e1f397 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Mon, 7 Sep 2009 03:29:38 +0000 Subject: [PATCH] cleanup unused reusableToken instances that were left behind git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@811984 13f79535-47bb-0310-9956-ffa450edef68 --- .../lucene/analysis/shingle/TestShingleMatrixFilter.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/TestShingleMatrixFilter.java b/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/TestShingleMatrixFilter.java index 068c24a180f..5312e8edafb 100644 --- a/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/TestShingleMatrixFilter.java +++ b/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/TestShingleMatrixFilter.java @@ -73,7 +73,6 @@ public class TestShingleMatrixFilter extends BaseTokenStreamTestCase { 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 @@ public class TestShingleMatrixFilter extends BaseTokenStreamTestCase { 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 @@ public class TestShingleMatrixFilter extends BaseTokenStreamTestCase { // 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);