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) {
|
return if (readTree.isValueNode) {
|
||||||
StringOrObject(readTree.textValue())
|
StringOrObject(readTree.textValue())
|
||||||
} else if (readTree.isObject) {
|
} else if (readTree.isObject) {
|
||||||
val map: Map<String, String> = ctxt.readTreeAsValue<Map<String, String>>(
|
val map: Map<String, String> = ctxt.readTreeAsValue(
|
||||||
readTree,
|
readTree,
|
||||||
ctxt.typeFactory.constructType(object : TypeReference<Map<String, String>>() {})
|
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)
|
StringOrObject(map)
|
||||||
} else {
|
} else {
|
||||||
StringOrObject("")
|
StringOrObject("")
|
||||||
|
@ -79,10 +75,8 @@ class StringORObjectSerializer : JsonSerializer<StringOrObject>() {
|
||||||
}
|
}
|
||||||
if (value.contextString != null) {
|
if (value.contextString != null) {
|
||||||
gen?.writeString(value.contextString)
|
gen?.writeString(value.contextString)
|
||||||
println("serialize string")
|
|
||||||
} else {
|
} else {
|
||||||
serializers.defaultSerializeValue(value.contextObject, gen)
|
serializers.defaultSerializeValue(value.contextObject, gen)
|
||||||
println("serialize string")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue