This is an automated email from the ASF dual-hosted git repository. mapohl pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
commit f43972aa839aa955b7aec12a6dbfd5d9d32699ea Author: Matthias Pohl <[email protected]> AuthorDate: Mon Feb 19 09:58:33 2024 +0100 [hotfix][test] Replaces String#replaceAll with String#replace in ClassLoaderUtils to avoid regex compilation --- .../src/test/java/org/apache/flink/testutils/ClassLoaderUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flink-core/src/test/java/org/apache/flink/testutils/ClassLoaderUtils.java b/flink-core/src/test/java/org/apache/flink/testutils/ClassLoaderUtils.java index 25f5ea1cef7..2a3f320e107 100644 --- a/flink-core/src/test/java/org/apache/flink/testutils/ClassLoaderUtils.java +++ b/flink-core/src/test/java/org/apache/flink/testutils/ClassLoaderUtils.java @@ -47,7 +47,7 @@ public class ClassLoaderUtils { public static URLClassLoader compileAndLoadJava(File root, String filename, String source) throws IOException { - return withRoot(root).addClass(filename.replaceAll("\\.java", ""), source).build(); + return withRoot(root).addClass(filename.replace(".java", ""), source).build(); } private static URLClassLoader createClassLoader(File root, ClassLoader parent)
