fixed bug with package listing in JPMS modules
All checks were successful
CI / build (push) Successful in 1m32s

This commit is contained in:
2025-01-08 09:35:37 +08:00
parent d5c93708c5
commit 5cfc65c35a
3 changed files with 6 additions and 4 deletions

View File

@@ -192,7 +192,7 @@ public class JarFileModuleFinder implements ModuleFinder {
private static Set<String> collectPackageNames(JarFile jarFile) {
Set<String> result = jarFile
.versionedStream()
.filter(entry -> entry.getName().endsWith(".class"))
.filter(zipEntry -> !zipEntry.isDirectory())
.map(entry -> {
String entryName = entry.getName();
int lastSlash = entryName.lastIndexOf('/');