Skip to content

Commit

Permalink
Allow IPC messages to persist after response
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed Oct 29, 2024
1 parent 47bd2c7 commit 1a1b58f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ open class PolymorphicAdapter<T>(
@Suppress("UNCHECKED_CAST")
override fun deserialize(json: JsonElement, typeOfT: Type, context: JsonDeserializationContext): T {
val className = json.asJsonObject.get("${name}Class").asString

val clazz = classloader.loadClass(className)

return gson.fromJson(json.asJsonObject.get(name), clazz) as T
Expand Down

0 comments on commit 1a1b58f

Please sign in to comment.