diff --git a/jps-plugin/src/org/jetbrains/kotlin/jps/targets/KotlinModuleBuildTarget.kt b/jps-plugin/src/org/jetbrains/kotlin/jps/targets/KotlinModuleBuildTarget.kt index 393134fa370..69e22c38c16 100644 --- a/jps-plugin/src/org/jetbrains/kotlin/jps/targets/KotlinModuleBuildTarget.kt +++ b/jps-plugin/src/org/jetbrains/kotlin/jps/targets/KotlinModuleBuildTarget.kt @@ -152,13 +152,13 @@ abstract class KotlinModuleBuildTarget intern get() = _sources.value @Volatile - private var _sources: Lazy> = lazy { updateSourcesList(jpsGlobalContext) } + private var _sources: Lazy> = lazy { computeSourcesList(jpsGlobalContext) } fun nextRound(localContext: CompileContext) { - _sources = lazy { updateSourcesList(localContext) } + _sources = lazy { computeSourcesList(localContext) } } - private fun updateSourcesList(localContext: CompileContext): Map { + private fun computeSourcesList(localContext: CompileContext): Map { val result = mutableMapOf() val moduleExcludes = module.excludeRootsList.urls.mapTo(java.util.HashSet(), JpsPathUtil::urlToFile)