mirror of https://github.com/usbharu/Hideout.git
style: 不要なprintlnを消した
This commit is contained in:
parent
fb029098b7
commit
4ee71416d9
|
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue