From 51c09dab7b7bab35ae1b61efd640e522756a4aef Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 17 Feb 2022 01:21:22 +0100 Subject: [PATCH] Extracted ZeroString --- .../kotlin/net/dankito/banking/fints/model/Amount.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/Amount.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/Amount.kt index df2cd723..41d63c09 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/Amount.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/Amount.kt @@ -6,11 +6,13 @@ open class Amount( ) { companion object { - val Zero = Amount("0,") + val ZeroString = "0," + + val Zero = Amount(ZeroString) } - internal constructor() : this("") // for object deserializers + internal constructor() : this(ZeroString) // for object deserializers override fun equals(other: Any?): Boolean {