fixup synchronizations

This commit is contained in:
Andrey Uskov
2021-05-27 10:12:17 +03:00
committed by teamcityserver
parent b0d721c9d0
commit be097244d4
6 changed files with 16 additions and 9 deletions
@@ -13,7 +13,6 @@ class SourceToOutputFilesMap(
private val pathConverter: FileToPathConverter
) : BasicStringMap<Collection<String>>(storageFile, PathStringDescriptor, StringCollectionExternalizer) {
@Synchronized
operator fun set(sourceFile: File, outputFiles: Collection<File>) {
storage[pathConverter.toPath(sourceFile)] = outputFiles.map(pathConverter::toPath)
}
@@ -24,7 +23,6 @@ class SourceToOutputFilesMap(
override fun dumpValue(value: Collection<String>) =
value.dumpCollection()
@Synchronized
fun remove(file: File): Collection<File> =
get(file).also { storage.remove(pathConverter.toPath(file)) }
}