From 1fc30fc559d1d4c977b7f70a589a5719e88a019b Mon Sep 17 00:00:00 2001 From: Joseph Zuniga-Daly Date: Tue, 14 Jul 2020 15:32:35 +0100 Subject: [PATCH] Remove comment --- .../serialization/kryo/CustomSerializerCheckpointAdaptor.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/node-api/src/main/kotlin/net/corda/nodeapi/internal/serialization/kryo/CustomSerializerCheckpointAdaptor.kt b/node-api/src/main/kotlin/net/corda/nodeapi/internal/serialization/kryo/CustomSerializerCheckpointAdaptor.kt index b209754807..e97fd2494c 100644 --- a/node-api/src/main/kotlin/net/corda/nodeapi/internal/serialization/kryo/CustomSerializerCheckpointAdaptor.kt +++ b/node-api/src/main/kotlin/net/corda/nodeapi/internal/serialization/kryo/CustomSerializerCheckpointAdaptor.kt @@ -66,8 +66,6 @@ class CustomSerializerCheckpointAdaptor(private val userSerializer : */ override fun read(kryo: Kryo, input: Input, type: Class): OBJ { - // The cast is to an erased type so we can't do better. - // This will throw a runtime exception when the type is not as expected so it won't allow the wrong thing to happen. @Suppress("UNCHECKED_CAST") fun readFromKryo() = kryo.readClassAndObject(input) as T