Skip to content

Commit

Permalink
T
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzelin committed Nov 20, 2024
1 parent 2eb521d commit 1e5760a
Showing 1 changed file with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,15 +351,26 @@ private static String convertProblemsToIndentedString(List<String> problems, Str
}

private static List<Path> findNoticeFiles(Path root) throws IOException {
return Files.walk(root)
.filter(
file -> {
int nameCount = file.getNameCount();
return file.getName(nameCount - 3).toString().equals("resources")
&& file.getName(nameCount - 2).toString().equals("META-INF")
&& file.getName(nameCount - 1).toString().equals("NOTICE");
})
.collect(Collectors.toList());
List<Path> files =
Files.walk(root)
.filter(
file -> {
int nameCount = file.getNameCount();
return file.getName(nameCount - 3)
.toString()
.equals("resources")
&& file.getName(nameCount - 2)
.toString()
.equals("META-INF")
&& file.getName(nameCount - 1)
.toString()
.equals("NOTICE");
})
.collect(Collectors.toList());
if (true) {
throw new RuntimeException("DEBUG:\n" + files);
}
return files;
}

private static List<String> loadFromResources(String fileName) {
Expand Down

0 comments on commit 1e5760a

Please sign in to comment.