rmuir commented on code in PR #12753: URL: https://github.com/apache/lucene/pull/12753#discussion_r1382039175
########## lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanStemmer.java: ########## @@ -33,7 +33,7 @@ class GermanStemmer { /** Amount of characters that are removed with <code>substitute()</code> while stemming. */ private int substCount = 0; - private static final Locale locale = new Locale("de", "DE"); + private static final Locale locale = new Locale.Builder().setLanguageTag("de-DE").build(); Review Comment: Sorry, I'm just nitpicky, but i see no such guarantee in the javadocs for what this constant does. The javadoc says "Useful constant for country." -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org