epugh commented on code in PR #3696:
URL: https://github.com/apache/solr/pull/3696#discussion_r2408246802
##########
solr/modules/langid/src/java/org/apache/solr/update/processor/LanguageIdentifierUpdateProcessor.java:
##########
@@ -111,19 +111,14 @@ private void initParams(SolrParams params) {
overwrite = params.getBool(OVERWRITE, false);
langAllowlist = new HashSet<>();
threshold = params.getDouble(THRESHOLD, DOCID_THRESHOLD_DEFAULT);
- final String legacyAllowList = params.get(LANG_WHITELIST, "").trim();
- if (!legacyAllowList.isEmpty()) {
- // nowarn compile time string concatenation
- log.warn(
- LANG_WHITELIST
- + " parameter is deprecated; use "
- + LANG_ALLOWLIST
- + " instead."); // nowarn
+
+ HashSet<String> strings = langAllowlist;
+ for (String s : params.get(LANG_ALLOWLIST, "").split(",")) {
+ String lang = s.trim();
+ if (!lang.isEmpty()) {
+ strings.add(lang);
+ }
}
Review Comment:
IDE recommended this... I'll look again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]