From c23c2dbe857add4031959bcc8bee0ba7039079d8 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Mon, 7 Dec 2015 21:46:43 +0300 Subject: [PATCH] FileTreeWalk: correct usage not to filter out subdirectories --- .../src/org/jetbrains/kotlin/daemon/LazyClasspathWatcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/daemon/src/org/jetbrains/kotlin/daemon/LazyClasspathWatcher.kt b/compiler/daemon/src/org/jetbrains/kotlin/daemon/LazyClasspathWatcher.kt index 49f360f2e0c..b7b7f8ca1e9 100644 --- a/compiler/daemon/src/org/jetbrains/kotlin/daemon/LazyClasspathWatcher.kt +++ b/compiler/daemon/src/org/jetbrains/kotlin/daemon/LazyClasspathWatcher.kt @@ -61,7 +61,7 @@ class LazyClasspathWatcher(classpath: Iterable, fileIds = classpath .map { File(it) } .asSequence() - .flatMap { FileTreeWalk(it, filter = ::isClasspathFile) } + .flatMap { it.walk().filter(::isClasspathFile) } .map { FileId(it, it.lastModified(), it.md5Digest()) } .toArrayList() val nowMs = TimeUnit.MILLISECONDS.toMillis(System.nanoTime())