diff --git a/config/checkstyle.properties b/config/checkstyle.properties index d0a76583..b71118aa 100644 --- a/config/checkstyle.properties +++ b/config/checkstyle.properties @@ -1,6 +1,6 @@ checkstyle.suppressions.file=config/suppressions.xml checkstyle.suppressions-xpath.file=config/suppressions.xml checkstyle.header.file=https://raw.githubusercontent.com/checkstyle/checkstyle/master/config/java.header -checkstyle.regexp.header.file=https://raw.githubusercontent.com/checkstyle/checkstyle/master/config/java_regexp.header +checkstyle.regexp.header.file=https://raw.githubusercontent.com/checkstyle/checkstyle/master/config/java-regexp.header checkstyle.importcontrol.file=config/import-control.xml checkstyle.importcontroltest.file=config/import-control-test.xml diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/filters/AbstractPatchFilterEvaluationTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/filters/AbstractPatchFilterEvaluationTest.java index c3dbf450..9685488b 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/filters/AbstractPatchFilterEvaluationTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/filters/AbstractPatchFilterEvaluationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2022 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -34,6 +34,7 @@ import java.util.Arrays; import java.util.Collections; import java.util.List; +import java.util.Locale; import java.util.stream.Collectors; import com.puppycrawl.tools.checkstyle.AbstractModuleTestSupport; @@ -51,6 +52,8 @@ abstract class AbstractPatchFilterEvaluationTest extends AbstractModuleTestSuppo protected void testByConfig(String configPath) throws Exception { + Locale.setDefault(Locale.ENGLISH); + final String inputFile = configPath.replaceFirst( "(default|zero)ContextConfig.xml", ""); // we can add here any variable to provide path to patch name by PropertiesExpander