There was an error while loading. Please reload this page.
1 parent acd3c29 commit f61ac76Copy full SHA for f61ac76
checker/tests/optional/Issue6970.java
@@ -0,0 +1,18 @@
1
+import java.nio.file.Path;
2
+import java.util.Locale;
3
+import java.util.Set;
4
+
5
+public class Issue6970 {
6
7
+ public static Path getPath(String moduleName) {
8
+ final String fileNamePattern = ".*[\\\\/]" + moduleName.toLowerCase(Locale.ROOT) + "\\..*";
9
+ return getPaths().stream()
10
+ .filter(path -> path.toString().matches(fileNamePattern))
11
+ .findFirst()
12
+ .orElse(null);
13
+ }
14
15
+ private static Set<Path> getPaths() {
16
+ throw new RuntimeException("");
17
18
+}
0 commit comments