Use toLowerCase with an explicit locale in CheckLinksAndAnchors.

This commit is contained in:
Dawid Weiss 2019-12-03 13:01:43 +01:00
parent 9e5d11be8a
commit 6f0842eaa5
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}
}