mirror of https://github.com/apache/lucene.git
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
This commit is contained in:
parent
675af03c9b
commit
53dcf2c320
|
@ -73,7 +73,6 @@ public class TestShingleMatrixFilter extends BaseTokenStreamTestCase {
|
||||||
|
|
||||||
ts = new ShingleMatrixFilter(tls, 1, 2, new Character(' '), false, new ShingleMatrixFilter.OneDimensionalNonWeightedTokenSettingsCodec());
|
ts = new ShingleMatrixFilter(tls, 1, 2, new Character(' '), false, new ShingleMatrixFilter.OneDimensionalNonWeightedTokenSettingsCodec());
|
||||||
|
|
||||||
Token reusableToken = new Token();
|
|
||||||
|
|
||||||
assertNext(ts, "please", 0, 6);
|
assertNext(ts, "please", 0, 6);
|
||||||
assertNext(ts, "please divide", 0, 13);
|
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());
|
ts = new ShingleMatrixFilter(tls, 2, 2, new Character('_'), false, new ShingleMatrixFilter.TwoDimensionalNonWeightedSynonymTokenSettingsCodec());
|
||||||
|
|
||||||
final Token reusableToken = new Token();
|
|
||||||
assertNext(ts, "hello_world");
|
assertNext(ts, "hello_world");
|
||||||
assertNext(ts, "greetings_world");
|
assertNext(ts, "greetings_world");
|
||||||
assertNext(ts, "hello_earth");
|
assertNext(ts, "hello_earth");
|
||||||
|
@ -371,7 +369,6 @@ public class TestShingleMatrixFilter extends BaseTokenStreamTestCase {
|
||||||
// token.clear();
|
// token.clear();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
final Token reusableToken = new Token();
|
|
||||||
assertNext(ts, "no_surprise", 1, 1.4142135f, 0, 0);
|
assertNext(ts, "no_surprise", 1, 1.4142135f, 0, 0);
|
||||||
assertNext(ts, "no_surprise_to", 1, 1.7320508f, 0, 0);
|
assertNext(ts, "no_surprise_to", 1, 1.7320508f, 0, 0);
|
||||||
assertNext(ts, "no_surprise_to_see", 1, 2.0f, 0, 0);
|
assertNext(ts, "no_surprise_to_see", 1, 2.0f, 0, 0);
|
||||||
|
|
Loading…
Reference in New Issue