diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/StringOrObject.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/StringOrObject.kt index 2011fae8..b419bf79 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/StringOrObject.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/StringOrObject.kt @@ -55,14 +55,10 @@ class StringOrObjectDeserializer : JsonDeserializer() { return if (readTree.isValueNode) { StringOrObject(readTree.textValue()) } else if (readTree.isObject) { - val map: Map = ctxt.readTreeAsValue>( + val map: Map = ctxt.readTreeAsValue( readTree, ctxt.typeFactory.constructType(object : TypeReference>() {}) ) - println(readTree.toPrettyString()) - -// val map = p.codec.readValue>(p,object : TypeReference>() {}) - println(map) StringOrObject(map) } else { StringOrObject("") @@ -79,10 +75,8 @@ class StringORObjectSerializer : JsonSerializer() { } if (value.contextString != null) { gen?.writeString(value.contextString) - println("serialize string") } else { serializers.defaultSerializeValue(value.contextObject, gen) - println("serialize string") } } }