mirror of https://github.com/apache/lucene.git
appease linter
This commit is contained in:
parent
d2105eb86b
commit
ca62cba92c
|
@ -18,7 +18,6 @@ package org.apache.lucene.analysis.pattern;
|
||||||
|
|
||||||
import java.io.Reader;
|
import java.io.Reader;
|
||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.TokenFilterFactory;
|
import org.apache.lucene.analysis.TokenFilterFactory;
|
||||||
import org.apache.lucene.analysis.TokenStream;
|
import org.apache.lucene.analysis.TokenStream;
|
||||||
import org.apache.lucene.tests.analysis.BaseTokenStreamFactoryTestCase;
|
import org.apache.lucene.tests.analysis.BaseTokenStreamFactoryTestCase;
|
||||||
|
@ -52,7 +51,7 @@ public class TestPatternReplaceFilterFactory extends BaseTokenStreamFactoryTestC
|
||||||
Reader reader = new StringReader("123");
|
Reader reader = new StringReader("123");
|
||||||
TokenStream stream = whitespaceMockTokenizer(reader);
|
TokenStream stream = whitespaceMockTokenizer(reader);
|
||||||
TokenFilterFactory factory =
|
TokenFilterFactory factory =
|
||||||
tokenFilterFactory("PatternReplace", "pattern", "(-?\\d+)", "replacement", "000$1");
|
tokenFilterFactory("PatternReplace", "pattern", "(-?\\d+)", "replacement", "000$1");
|
||||||
stream = factory.normalize(stream);
|
stream = factory.normalize(stream);
|
||||||
assertTokenStreamContents(stream, new String[] {"000123"});
|
assertTokenStreamContents(stream, new String[] {"000123"});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue