From ab112aa7a478ed61e54bb6dce8ea7a24a92c23df Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 25 Apr 2022 22:04:36 +0600 Subject: [PATCH] Revert "HandlersRegistrar now is open" This reverts commit 3ac56dcfd3ca2a0fa6dd5403a9afb7a93b84b348. --- .../inmo/micro_utils/handlers/common/HandlersRegistrar.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handlers/common/src/commonMain/kotlin/dev/inmo/micro_utils/handlers/common/HandlersRegistrar.kt b/handlers/common/src/commonMain/kotlin/dev/inmo/micro_utils/handlers/common/HandlersRegistrar.kt index d2ffc6e415d..f5ca6de9bc9 100644 --- a/handlers/common/src/commonMain/kotlin/dev/inmo/micro_utils/handlers/common/HandlersRegistrar.kt +++ b/handlers/common/src/commonMain/kotlin/dev/inmo/micro_utils/handlers/common/HandlersRegistrar.kt @@ -9,9 +9,9 @@ import kotlinx.coroutines.* * @param defaultHandler If presented will be used in case where there are no any layer from [layers] with any handler * to handle data inside of [handle] method */ -open class HandlersRegistrar( - protected val layers: Iterable>>, - protected val defaultHandler: Handler? = null +class HandlersRegistrar( + private val layers: Iterable>>, + private val defaultHandler: Handler? = null ) : Handler { /** * Will iterate over the [layers]. On each layer (in face each [Iterable] of [Handler]s) ALL the handlers will be