mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix compilation problem with Kotlin in latest EAP
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ class EventMap<R : ResponseResultReader>(private val protocolReader: R) {
|
||||
fun <T : Any?> add(type: EventType<T, R>, 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 <T> addMulti(vararg types: EventType<out T, R>, eventHandler: (T) -> Unit) {
|
||||
|
||||
Reference in New Issue
Block a user