From eb98bab102b4a1a46e5b64ca3d719addf667d01e Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Fri, 30 Jun 2017 04:54:43 +0300 Subject: [PATCH] Minimize usage of TargetId in IC Original commit: d1fd88fb8e152dc9c3b7a14c8d3c6e3c46d51ab0 --- .../src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt | 4 ++-- .../kotlin/jps/incremental/JpsIncrementalCacheImpl.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt b/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt index b41645a9e69..a0d9523dc55 100644 --- a/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt +++ b/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt @@ -424,7 +424,7 @@ class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR) { private fun doCompileModuleChunk( allCompiledFiles: MutableSet, chunk: ModuleChunk, commonArguments: CommonCompilerArguments, context: CompileContext, dirtyFilesHolder: DirtyFilesHolder, environment: JpsCompilerEnvironment, - filesToCompile: MultiMap, incrementalCaches: Map>, + filesToCompile: MultiMap, incrementalCaches: Map, project: JpsProject ): OutputItemsCollector? { @@ -827,7 +827,7 @@ private fun CompilationResult.processChangesUsingLookups( compiledFiles: Set, dataManager: BuildDataManager, fsOperations: FSOperationsHelper, - caches: Iterable> + caches: Iterable ) { val lookupStorage = dataManager.getStorage(KotlinDataContainerTarget, JpsLookupStorageProvider) val allCaches = caches.flatMap { it.thisWithDependentCaches } diff --git a/jps/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/JpsIncrementalCacheImpl.kt b/jps/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/JpsIncrementalCacheImpl.kt index ca7990987f7..4bc52d42ff0 100644 --- a/jps/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/JpsIncrementalCacheImpl.kt +++ b/jps/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/JpsIncrementalCacheImpl.kt @@ -28,7 +28,7 @@ import java.io.File class JpsIncrementalCacheImpl( target: ModuleBuildTarget, paths: BuildDataPaths -) : IncrementalCacheImpl(paths.getTargetDataRoot(target), target.outputDir, target), StorageOwner { +) : IncrementalCacheImpl(paths.getTargetDataRoot(target), target.outputDir), StorageOwner { override fun debugLog(message: String) { KotlinBuilder.LOG.debug(message) }