appease linter

This commit is contained in:
Dainius Jocas 2023-10-02 12:14:25 +03:00
parent d2105eb86b
commit ca62cba92c
1 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,6 @@ package org.apache.lucene.analysis.pattern;
import java.io.Reader;
import java.io.StringReader;
import org.apache.lucene.analysis.TokenFilterFactory;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.tests.analysis.BaseTokenStreamFactoryTestCase;
@ -52,7 +51,7 @@ public class TestPatternReplaceFilterFactory extends BaseTokenStreamFactoryTestC
Reader reader = new StringReader("123");
TokenStream stream = whitespaceMockTokenizer(reader);
TokenFilterFactory factory =
tokenFilterFactory("PatternReplace", "pattern", "(-?\\d+)", "replacement", "000$1");
tokenFilterFactory("PatternReplace", "pattern", "(-?\\d+)", "replacement", "000$1");
stream = factory.normalize(stream);
assertTokenStreamContents(stream, new String[] {"000123"});
}