aboutsummaryrefslogtreecommitdiff
path: root/umlgen/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'umlgen/src/main')
-rw-r--r--umlgen/src/main/java/moe/yuuta/umlgen/Visitor.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/umlgen/src/main/java/moe/yuuta/umlgen/Visitor.kt b/umlgen/src/main/java/moe/yuuta/umlgen/Visitor.kt
index ea99b99..3897e8a 100644
--- a/umlgen/src/main/java/moe/yuuta/umlgen/Visitor.kt
+++ b/umlgen/src/main/java/moe/yuuta/umlgen/Visitor.kt
@@ -25,7 +25,7 @@ class Visitor(private val consumer: BiFunction<Path, String, Void?>) : FileVisit
@Throws(IOException::class)
override fun visitFile(path: Path, basicFileAttributes: BasicFileAttributes?): FileVisitResult {
- if (path.fileName.endsWith(".java")) {
+ if (!path.fileName.toString().endsWith(".java")) {
return FileVisitResult.CONTINUE
}
val fd = Files.newInputStream(path, StandardOpenOption.READ)