forbid ICU Collator creation with default locale (#26476)

This commit is contained in:
Andy Bristol 2017-09-07 14:47:52 -07:00 committed by GitHub
parent e684c5e0a5
commit 33faf5ec70
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,12 @@ esplugin {
classname 'org.elasticsearch.plugin.analysis.icu.AnalysisICUPlugin'
}
forbiddenApis {
signatures += [
"com.ibm.icu.text.Collator#getInstance() @ Don't use default locale, use getInstance(ULocale) instead"
]
}
dependencies {
compile "org.apache.lucene:lucene-analyzers-icu:${versions.lucene}"
compile 'com.ibm.icu:icu4j:59.1'