style: 不要なprintlnを消した

This commit is contained in:
usbharu 2024-05-14 10:58:15 +09:00
parent fb029098b7
commit 4ee71416d9
1 changed files with 1 additions and 7 deletions

View File

@ -55,14 +55,10 @@ class StringOrObjectDeserializer : JsonDeserializer<StringOrObject>() {
return if (readTree.isValueNode) {
StringOrObject(readTree.textValue())
} else if (readTree.isObject) {
val map: Map<String, String> = ctxt.readTreeAsValue<Map<String, String>>(
val map: Map<String, String> = ctxt.readTreeAsValue(
readTree,
ctxt.typeFactory.constructType(object : TypeReference<Map<String, String>>() {})
)
println(readTree.toPrettyString())
// val map = p.codec.readValue<Map<String, String>>(p,object : TypeReference<Map<String, String>>() {})
println(map)
StringOrObject(map)
} else {
StringOrObject("")
@ -79,10 +75,8 @@ class StringORObjectSerializer : JsonSerializer<StringOrObject>() {
}
if (value.contextString != null) {
gen?.writeString(value.contextString)
println("serialize string")
} else {
serializers.defaultSerializeValue(value.contextObject, gen)
println("serialize string")
}
}
}