Apache Solr open-source search software
Use toLowerCase with an explicit locale in CheckLinksAndAnchors.
Dawid Weiss6f0842eaa5e6
diff --git a/solr/solr-ref-guide/tools/CheckLinksAndAnchors.java b/solr/solr-ref-guide/tools/CheckLinksAndAnchors.javaindex a1641f1c589..4d356bec896 100644--- a/solr/solr-ref-guide/tools/CheckLinksAndAnchors.java+++ b/solr/solr-ref-guide/tools/CheckLinksAndAnchors.java@@ -121,7 +121,7 @@ public class CheckLinksAndAnchors { // TODO: rename this class now that it doespublic static final class HtmlFileFilter implements FileFilter {public boolean accept(File pathname) {- return pathname.getName().toLowerCase().endsWith("html");+ return pathname.getName().toLowerCase(Locale.ROOT).endsWith("html");}}