From cde5db7a7893f4ba15f8517b72e6d3eaa8ff492d Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 24 Feb 2024 23:25:04 +0700 Subject: [PATCH] ListenableDelegate.SmartBox default arguments --- gradle.properties | 2 +- .../kotlin/ru/dbotthepony/kommons/util/ListenableDelegate.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 8d38b7a..6617a13 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ kotlin.code.style=official specifyKotlinAsDependency=false projectGroup=ru.dbotthepony.kommons -projectVersion=2.9.1 +projectVersion=2.9.2 guavaDepVersion=33.0.0 gsonDepVersion=2.8.9 diff --git a/src/main/kotlin/ru/dbotthepony/kommons/util/ListenableDelegate.kt b/src/main/kotlin/ru/dbotthepony/kommons/util/ListenableDelegate.kt index 2962162..7b1a885 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/util/ListenableDelegate.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/util/ListenableDelegate.kt @@ -55,7 +55,7 @@ interface ListenableDelegate : Delegate, Listenable { } } - class SmartBox(value: V, private val getter: DelegateGetter, private val setter: DelegateSetter) : ListenableDelegate { + class SmartBox(value: V, private val getter: DelegateGetter = DelegateGetter.passthrough(), private val setter: DelegateSetter = DelegateSetter.passthrough()) : ListenableDelegate { private val value = Box(value) fun clearListeners() {