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())