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