Fix synchronization in source-to-classes table
This commit is contained in:
committed by
teamcityserver
parent
ee45aa6b08
commit
290d424111
@@ -40,6 +40,7 @@ internal abstract class AbstractSourceToOutputMap<Name>(
|
||||
remove(pathConverter.toPath(sourceFile))
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun add(sourceFile: File, className: Name) {
|
||||
storage.append(pathConverter.toPath(sourceFile), listOf(nameTransformer.asString(className)))
|
||||
}
|
||||
@@ -56,6 +57,7 @@ internal abstract class AbstractSourceToOutputMap<Name>(
|
||||
override fun dumpValue(value: Collection<String>) =
|
||||
value.dumpCollection()
|
||||
|
||||
@Synchronized
|
||||
private fun remove(path: String) {
|
||||
storage.remove(path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user