You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2019/12/03 12:01:53 UTC

[lucene-solr] branch master updated: Use toLowerCase with an explicit locale in CheckLinksAndAnchors.

This is an automated email from the ASF dual-hosted git repository.

dweiss pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f0842e  Use toLowerCase with an explicit locale in CheckLinksAndAnchors.
6f0842e is described below

commit 6f0842eaa5e654c7f4976c95e5d1aba1e940983c
Author: Dawid Weiss <dw...@apache.org>
AuthorDate: Tue Dec 3 13:01:43 2019 +0100

    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 a1641f1..4d356be 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");
     }
   }