From 002878cf09a621b9e2a195d6cb1be4dff37eb523 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 20 Sep 2020 19:08:21 +0200 Subject: [PATCH] Removed redundant qualifier --- .../jvmMain/kotlin/net/dankito/utils/multiplatform/Date.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/Date.kt b/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/Date.kt index bfa121f3..87cf4444 100644 --- a/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/Date.kt +++ b/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/Date.kt @@ -4,7 +4,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize import net.dankito.utils.multiplatform.serialization.DateDeserializer import java.text.DateFormat import java.util.* -import java.util.Date @JsonDeserialize(using = DateDeserializer::class) @@ -12,7 +11,7 @@ actual class Date actual constructor(millisSinceEpoch: Long) : java.util.Date(mi actual companion object { - actual val today: net.dankito.utils.multiplatform.Date + actual val today: Date get() { val today = Calendar.getInstance() @@ -21,7 +20,7 @@ actual class Date actual constructor(millisSinceEpoch: Long) : java.util.Date(mi today.set(Calendar.SECOND, 0) today.set(Calendar.MILLISECOND, 0) - return net.dankito.utils.multiplatform.Date(today.time.time) + return Date(today.time.time) } } @@ -61,7 +60,7 @@ actual class Date actual constructor(millisSinceEpoch: Long) : java.util.Date(mi } - actual fun compareTo(other: net.dankito.utils.multiplatform.Date): Int { + actual fun compareTo(other: Date): Int { return super.compareTo(other) }