From 6f0842eaa5e654c7f4976c95e5d1aba1e940983c Mon Sep 17 00:00:00 2001 From: Dawid Weiss Date: Tue, 3 Dec 2019 13:01:43 +0100 Subject: [PATCH] Use toLowerCase with an explicit locale in CheckLinksAndAnchors. --- solr/solr-ref-guide/tools/CheckLinksAndAnchors.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } }