Skip to content

Apache Lucene 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.java
index 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 does
public 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");
}
}