From fc0bd288e3e58ed1670ce5fc1ed6caaaecdb47f2 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 13 Feb 2020 20:56:03 +0600 Subject: [PATCH] refactor renames --- src/commonMain/kotlin/com/insanusmokrassar/sdi/Module.kt | 5 +++++ .../{ModuleSerializer.kt => ModuleDeserializerStrategy.kt} | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 src/commonMain/kotlin/com/insanusmokrassar/sdi/Module.kt rename src/commonMain/kotlin/com/insanusmokrassar/sdi/{ModuleSerializer.kt => ModuleDeserializerStrategy.kt} (90%) diff --git a/src/commonMain/kotlin/com/insanusmokrassar/sdi/Module.kt b/src/commonMain/kotlin/com/insanusmokrassar/sdi/Module.kt new file mode 100644 index 0000000..ea376e6 --- /dev/null +++ b/src/commonMain/kotlin/com/insanusmokrassar/sdi/Module.kt @@ -0,0 +1,5 @@ +package com.insanusmokrassar.sdi + +import kotlinx.serialization.ContextualSerialization + +class Module internal constructor(base: Map) : Map by base \ No newline at end of file diff --git a/src/commonMain/kotlin/com/insanusmokrassar/sdi/ModuleSerializer.kt b/src/commonMain/kotlin/com/insanusmokrassar/sdi/ModuleDeserializerStrategy.kt similarity index 90% rename from src/commonMain/kotlin/com/insanusmokrassar/sdi/ModuleSerializer.kt rename to src/commonMain/kotlin/com/insanusmokrassar/sdi/ModuleDeserializerStrategy.kt index 5f3ad09..3313c4e 100644 --- a/src/commonMain/kotlin/com/insanusmokrassar/sdi/ModuleSerializer.kt +++ b/src/commonMain/kotlin/com/insanusmokrassar/sdi/ModuleDeserializerStrategy.kt @@ -6,8 +6,6 @@ import kotlinx.serialization.internal.HashMapSerializer import kotlinx.serialization.internal.StringSerializer import kotlinx.serialization.json.* -class Module internal constructor(base: Map) : Map by base - @ImplicitReflectionSerializer internal object ModuleDeserializerStrategy : DeserializationStrategy { private val internalSerializer = HashMapSerializer(StringSerializer, ContextSerializer(Any::class))