From fbc213e25841038b5300b67e626dfcd53df6253d Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Fri, 1 Jan 2016 16:05:45 +0300 Subject: [PATCH] fix compilation problem with Kotlin in latest EAP --- .../src/org/jetbrains/jsonProtocol/EventMap.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/script-debugger/protocol/protocol-reader-runtime/src/org/jetbrains/jsonProtocol/EventMap.kt b/platform/script-debugger/protocol/protocol-reader-runtime/src/org/jetbrains/jsonProtocol/EventMap.kt index ed9d8b42f675..35ad94dd6375 100644 --- a/platform/script-debugger/protocol/protocol-reader-runtime/src/org/jetbrains/jsonProtocol/EventMap.kt +++ b/platform/script-debugger/protocol/protocol-reader-runtime/src/org/jetbrains/jsonProtocol/EventMap.kt @@ -29,7 +29,7 @@ class EventMap(private val protocolReader: R) { fun add(type: EventType, handler: (T) -> Unit) { nameToType.put(type.methodName, type) @Suppress("UNCHECKED_CAST") - nameToHandler.getOrPut(type.methodName, { ContainerUtil.createLockFreeCopyOnWriteList() }).add(handler as (Any?) -> Unit) + nameToHandler.concurrentGetOrPut(type.methodName, { ContainerUtil.createLockFreeCopyOnWriteList() }).add(handler as (Any?) -> Unit) } fun addMulti(vararg types: EventType, eventHandler: (T) -> Unit) {