LUCENE-8756: ant precommit (ant check-forbidden-apis) fix

This commit is contained in:
Christine Poerschke 2019-05-01 19:30:56 +01:00
parent 1f91932ba4
commit 6842676952
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
import java.util.Map;
import org.apache.lucene.analysis.Analyzer;
@ -494,7 +495,7 @@ public class TestMoreLikeThis extends LuceneTestCase {
.sum();
// mlt should use the custom frequencies provided by the analyzer so "lucene|10" should be boosted more than "lucene|1"
assertTrue(String.format("%s should be grater than %s", boost10, boost1), boost10 > boost1);
assertTrue(String.format(Locale.ROOT, "%s should be grater than %s", boost10, boost1), boost10 > boost1);
}
// TODO: add tests for the MoreLikeThisQuery