Skip to content

Commit 00acf93

Browse files
committed
fix: some directories weren't searched in JDK21
The value of `File.length()` is unspecified for directories.
1 parent e884f7a commit 00acf93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-tools-lib/src/main/kotlin/org/modelix/buildtools/ModulesMiner.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class ModulesMiner() {
6262

6363
if (isIgnored(file, fileFilter)) return
6464

65-
if (file.length() == 0L) return
65+
if (file.isFile && file.length() == 0L) return
6666

6767
if (file.isFile) {
6868
when (file.extension.lowercase()) {

0 commit comments

Comments
 (0)