Skip to content

Commit 1e5760a

Browse files
author
yuzelin
committed
T
1 parent 2eb521d commit 1e5760a

File tree

1 file changed

+20
-9
lines changed
  • paimon_python_java/paimon-python-java-bridge/tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck

1 file changed

+20
-9
lines changed

paimon_python_java/paimon-python-java-bridge/tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,26 @@ private static String convertProblemsToIndentedString(List<String> problems, Str
351351
}
352352

353353
private static List<Path> findNoticeFiles(Path root) throws IOException {
354-
return Files.walk(root)
355-
.filter(
356-
file -> {
357-
int nameCount = file.getNameCount();
358-
return file.getName(nameCount - 3).toString().equals("resources")
359-
&& file.getName(nameCount - 2).toString().equals("META-INF")
360-
&& file.getName(nameCount - 1).toString().equals("NOTICE");
361-
})
362-
.collect(Collectors.toList());
354+
List<Path> files =
355+
Files.walk(root)
356+
.filter(
357+
file -> {
358+
int nameCount = file.getNameCount();
359+
return file.getName(nameCount - 3)
360+
.toString()
361+
.equals("resources")
362+
&& file.getName(nameCount - 2)
363+
.toString()
364+
.equals("META-INF")
365+
&& file.getName(nameCount - 1)
366+
.toString()
367+
.equals("NOTICE");
368+
})
369+
.collect(Collectors.toList());
370+
if (true) {
371+
throw new RuntimeException("DEBUG:\n" + files);
372+
}
373+
return files;
363374
}
364375

365376
private static List<String> loadFromResources(String fileName) {

0 commit comments

Comments
 (0)